Skip to content

Commit 92eb592

Browse files
coreymartinclaude
andauthored
Use RELEASE_PAT in release workflow to trigger CI (#119)
## Summary - Release PRs created by the bot never had CI checks run because `GITHUB_TOKEN` events don't trigger downstream workflows (GitHub anti-recursion policy) - Switch to `RELEASE_PAT` so the push and PR creation events trigger CI and summary workflows normally - This unblocks release PRs like #118 from being stuck on missing `required-checks` ## Test plan - [ ] Verify next release PR (via workflow_dispatch) triggers CI and summary checks - [ ] Confirm `required-checks` status appears on the release PR 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9b9f07c commit 92eb592

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/release.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,18 @@ jobs:
113113
- name: Create release branch and PR
114114
if: github.event_name == 'workflow_dispatch'
115115
env:
116-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
116+
# Use a PAT so the push and PR creation trigger CI workflows.
117+
# GITHUB_TOKEN events don't trigger workflows (GitHub anti-recursion).
118+
GH_TOKEN: ${{ secrets.RELEASE_PAT }}
117119
run: |
118120
OLD_VERSION="${{ steps.changes.outputs.old_version }}"
119121
NEW_VERSION="${{ steps.bump.outputs.new_version }}"
120122
VERSION_BUMP="${{ steps.ai.outputs.version_bump }}"
121123
BRANCH="release/v${NEW_VERSION}"
122124
125+
# Configure git to push with the PAT
126+
git remote set-url origin "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git"
127+
123128
git checkout -b "$BRANCH"
124129
git add package.json package-lock.json CHANGELOG.md
125130
git commit -m "v${NEW_VERSION}"

0 commit comments

Comments
 (0)