Skip to content

Commit 6daa76d

Browse files
committed
fix: switch to service account secret
The release-please action uses the default Github token. When using this token any followup action is not triggered to avoid loops. This commit switches from default account to a new SA token that have permission to trigger any followup actions. Signed-off-by: Ales Raszka <[email protected]>
1 parent ddb1db7 commit 6daa76d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release-please.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
on:
23
push:
34
branches:
@@ -16,9 +17,10 @@ jobs:
1617
- uses: google-github-actions/release-please-action@v4
1718
id: release
1819
with:
20+
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
1921
release-type: python
2022
package-name: mobster
21-
changelog-types: '[{"type":"feat","section":"Features","hidden":false},
23+
changelog-types: '[{"type":"feat","section":"Features","hidden":false},
2224
{"type":"fix","section":"Bug Fixes","hidden":false},
2325
{"type":"docs","section":"Documentation","hidden":false},
2426
{"type":"test","section":"Tests","hidden":false},
@@ -30,7 +32,7 @@ jobs:
3032
run: |
3133
git config user.name github-actions[bot]
3234
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
33-
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/googleapis/release-please-action.git"
35+
git remote add gh-token "https://${{ secrets.RELEASE_PLEASE_TOKEN }}@github.com/googleapis/release-please-action.git"
3436
git tag -d v${{ steps.release.outputs.major }} || true
3537
git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
3638
git push origin :v${{ steps.release.outputs.major }} || true

0 commit comments

Comments
 (0)