Skip to content

Commit 051e7d9

Browse files
committed
Add missing token for gh cli
1 parent 1c33212 commit 051e7d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/publish-release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
runs-on: ubuntu-latest
8484
timeout-minutes: 20
8585
permissions:
86-
contents: write # to create a new release
86+
contents: write # to create a release (via gh cli)
8787
defaults:
8888
run:
8989
shell: bash
@@ -120,6 +120,8 @@ jobs:
120120
echo "$RELEASE_BODY" > release_notes.md
121121
- name: Create Release
122122
env:
123+
# Token required for GH CLI:
124+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
123125
TAG_NAME: ${{ github.event.workflow_run.head_branch }}
124126
VERSION: ${{ needs.check-version.outputs.VERSION }}
125127
run: |

0 commit comments

Comments
 (0)