Skip to content

Commit e1149db

Browse files
authored
Fix automatic toolchain update (rust-lang#2729)
1 parent 4b829ab commit e1149db

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/toolchain-upgrade.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ on:
99
workflow_dispatch: # Allow manual dispatching for a custom branch / tag.
1010

1111
permissions:
12-
contents: read
12+
checks: write
13+
contents: write
1314
issues: write
15+
pull-requests: write
1416

1517
jobs:
1618
create-toolchain-pr:
@@ -31,6 +33,7 @@ jobs:
3133
current_toolchain_epoch=$(date --date $current_toolchain_date +%s)
3234
next_toolchain_date=$(date --date "@$(($current_toolchain_epoch + 86400))" +%Y-%m-%d)
3335
echo "next_toolchain_date=$next_toolchain_date" >> $GITHUB_ENV
36+
GH_TOKEN=${{ github.token }}
3437
if gh issue list -S \
3538
"Toolchain upgrade to nightly-$next_toolchain_date failed" \
3639
--json number,title | grep title ; then

0 commit comments

Comments
 (0)