Skip to content

Commit 6e26f49

Browse files
committed
fix: improve token handling in version bump workflow
1 parent d7555ff commit 6e26f49

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/bump-version.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ jobs:
2424
ref: ${{ github.event.pull_request.base.ref }}
2525
# fetch-depth 2 so HEAD~1 resolves to the pre-merge master commit
2626
fetch-depth: 2
27-
# Use a PAT so the pushed bump commit can trigger deploy.yml
28-
token: ${{ secrets.RELEASE_BOT_TOKEN }}
27+
# Use a PAT so the pushed bump commit can trigger deploy.yml.
28+
# Falls back to github.token if RELEASE_BOT_TOKEN is not configured
29+
# (note: pushes with github.token won't re-trigger deploy.yml).
30+
token: ${{ secrets.RELEASE_BOT_TOKEN || github.token }}
2931

3032
- name: Set up Node
3133
uses: actions/setup-node@v6

0 commit comments

Comments
 (0)