Skip to content

Commit a2a7dc1

Browse files
authored
CI - provide token for GitHub CLI used in the release workflow (#7928)
This is required for querying the repo on GitHub. Follow-up to #7927
1 parent df4f3ff commit a2a7dc1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/release-main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ jobs:
3434
run: |
3535
envsubst < dev_tools/packaging/pypirc_template > $HOME/.pypirc
3636
- name: Build and publish
37+
env:
38+
GH_TOKEN: ${{ github.token }}
3739
run: |
3840
pr_number=$(git log -1 --pretty="%s" | sed -n -E "s/.*[(]#([0-9]+)[)]$/\1/p")
3941
if (( pr_number )) &&

0 commit comments

Comments
 (0)