Skip to content

Commit

Permalink
Fix automatic toolchain update (rust-lang#2729)
Browse files Browse the repository at this point in the history
  • Loading branch information
tautschnig authored Sep 5, 2023
1 parent 4b829ab commit e1149db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/toolchain-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ on:
workflow_dispatch: # Allow manual dispatching for a custom branch / tag.

permissions:
contents: read
checks: write
contents: write
issues: write
pull-requests: write

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

0 comments on commit e1149db

Please sign in to comment.