Skip to content

Commit d39ac58

Browse files
committed
chore: add github push token screts for github release
1 parent 81f04a5 commit d39ac58

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/github-release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ on:
99
required: true
1010
type: string
1111
description: Version to release
12+
secrets:
13+
# In case we want to trigger other workflows like ones that uses pushed tags
14+
GH_PUSH_TOKEN:
15+
required: false
16+
description: GitHub token with push permissions
1217

1318
permissions:
1419
contents: write
@@ -56,6 +61,7 @@ jobs:
5661
env:
5762
RELEASE_NOTES: ${{ steps.release_notes.outputs.notes }}
5863
with:
64+
github-token: ${{ secrets.GH_PUSH_TOKEN || github.token }}
5965
script: |
6066
const notes = process.env.RELEASE_NOTES;
6167
const version = '${{ inputs.version }}';

0 commit comments

Comments
 (0)