Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Loading