mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-03-22 07:07:24 +01:00
fix: improve token handling in version bump workflow
This commit is contained in:
parent
d7555ff1b2
commit
6e26f49423
1 changed files with 4 additions and 2 deletions
6
.github/workflows/bump-version.yml
vendored
6
.github/workflows/bump-version.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue