Skip to content

Commit 90f2fa4

Browse files
authored
fix: use RELEASE_PLZ_TOKEN to trigger workflows on release PRs (#131)
## Summary - Replace GITHUB_TOKEN with RELEASE_PLZ_TOKEN in release-plz workflow to enable CI workflows to run automatically on release PRs ## Problem When GitHub Actions creates a PR using the default `GITHUB_TOKEN`, GitHub intentionally doesn't trigger other workflows to prevent infinite loops. This meant our release PRs (#117) didn't run CI checks automatically. ## Solution Use the `RELEASE_PLZ_TOKEN` (Personal Access Token) that has the necessary `repo` and `workflow` permissions to create PRs that trigger CI workflows normally. ## Changes - Updated `.github/workflows/release-plz.yml` to use `${{ secrets.RELEASE_PLZ_TOKEN }}` instead of `${{ secrets.GITHUB_TOKEN }}` in both jobs ## Testing - The RELEASE_PLZ_TOKEN has already been created and added to repository secrets - Future release PRs will now automatically trigger CI workflows - This change will be validated when the next release PR is created Closes #130
1 parent f7bdc9d commit 90f2fa4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release-plz.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
with:
3131
command: release
3232
env:
33-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }}
3434
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
3535

3636
# Create a PR with the new versions and changelog, preparing the next release.
@@ -56,5 +56,5 @@ jobs:
5656
with:
5757
command: release-pr
5858
env:
59-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }}
6060
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)