Skip to content

Commit 8af7b8d

Browse files
authored
ci: update release workflow permissions and action reference (#57)
1 parent b608de1 commit 8af7b8d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,22 @@ on:
88

99
permissions:
1010
contents: write
11+
issues: write
1112
pull-requests: write
13+
repository-projects: read # this is required by release-please-action to set the auto-release tags
14+
15+
# Note for release-please-action:
16+
# The action will set the auto-release tags for the release PR. If these tags do not already exist, the action will fail to create them.
17+
# Therefore, make sure that the tags are created in the repository before running the release workflow: `autorelease: pending`, `autorelease: tagged`
1218

1319
jobs:
1420
release-if-needed:
1521
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1622
runs-on: ubuntu-latest
1723
steps:
1824
- name: Create Release PR
19-
uses: google-github-actions/release-please-action@v4
25+
uses: googleapis/release-please-action@v4
2026
id: release
2127
with:
22-
token: ${{ secrets.RELEASE_PLEASE_GITHUB_TOKEN }}
28+
token: ${{ secrets.GITHUB_TOKEN }}
2329
release-type: go

0 commit comments

Comments
 (0)