diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 6b4bf0b1..b1409f06 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -29,7 +29,7 @@ jobs: - name: Generate docs run: npm run docs - - name: Open/update docs PR and merge once checks pass + - name: Open/update docs PR env: GH_TOKEN: ${{ secrets.DOCS_PAT }} run: | @@ -50,12 +50,7 @@ jobs: if [ -z "$PR_NUMBER" ]; then gh pr create --head "$BRANCH" --base main \ --title "Update generated docs" \ - --body "Automated docs regeneration from the latest push to main." - PR_NUMBER=$(gh pr list --head "$BRANCH" --base main --state open --json number --jq '.[0].number') + --body "Automated docs regeneration from the latest push to main. Review and merge when ready." + else + echo "PR #$PR_NUMBER already open, pushed new commit to it." fi - - echo "Waiting for checks on PR #$PR_NUMBER..." - gh pr checks "$PR_NUMBER" --watch --fail-fast - - # Bypass only the required-review rule; the validate check above already gated this. - gh pr merge "$PR_NUMBER" --admin --merge --delete-branch