fix: improve token handling in version bump workflow

This commit is contained in:
Azgaar 2026-03-07 18:18:07 +01:00
parent d7555ff1b2
commit 6e26f49423

View file

@ -24,8 +24,10 @@ jobs:
ref: ${{ github.event.pull_request.base.ref }}
# fetch-depth 2 so HEAD~1 resolves to the pre-merge master commit
fetch-depth: 2
# Use a PAT so the pushed bump commit can trigger deploy.yml
token: ${{ secrets.RELEASE_BOT_TOKEN }}
# Use a PAT so the pushed bump commit can trigger deploy.yml.
# Falls back to github.token if RELEASE_BOT_TOKEN is not configured
# (note: pushes with github.token won't re-trigger deploy.yml).
token: ${{ secrets.RELEASE_BOT_TOKEN || github.token }}
- name: Set up Node
uses: actions/setup-node@v6