Skip to content

Commit 3c32a51

Browse files
authored
ci: use BACKEND_RELEASE_TOKEN for release dispatch
Use BACKEND_RELEASE_TOKEN for gh workflow run dispatch and polling to avoid GITHUB_TOKEN loops and 422 errors.
1 parent bab8263 commit 3c32a51

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/release-monthly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ jobs:
145145
146146
- name: Trigger CI for tag
147147
env:
148-
GH_TOKEN: ${{ github.token }}
148+
GH_TOKEN: ${{ secrets.BACKEND_RELEASE_TOKEN }}
149149
run: |
150150
# GITHUB_TOKEN pushes don't trigger workflow runs (prevents loops).
151151
# Explicitly dispatch CI on the tag so binaries get built and uploaded.
@@ -186,7 +186,7 @@ jobs:
186186
- name: Wait for CI to complete
187187
id: wait_ci
188188
env:
189-
GH_TOKEN: ${{ github.token }}
189+
GH_TOKEN: ${{ secrets.BACKEND_RELEASE_TOKEN }}
190190
run: |
191191
# Wait for tag CI to complete before publishing npm package
192192
# The osrm-backend.yml workflow is triggered by the tag push

0 commit comments

Comments
 (0)