Skip to content

Commit c8266bf

Browse files
authored
Toolchain upgrade workflow: fix de-duplicating issues (rust-lang#2749)
1 parent 18ea9e9 commit c8266bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/toolchain-upgrade.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@ jobs:
2727
os: ubuntu-22.04
2828

2929
- name: Update toolchain config
30+
env:
31+
GH_TOKEN: ${{ github.token }}
3032
run: |
3133
current_toolchain_date=$(grep ^channel rust-toolchain.toml | sed 's/.*nightly-\(.*\)"/\1/')
3234
echo "current_toolchain_date=$current_toolchain_date" >> $GITHUB_ENV
3335
current_toolchain_epoch=$(date --date $current_toolchain_date +%s)
3436
next_toolchain_date=$(date --date "@$(($current_toolchain_epoch + 86400))" +%Y-%m-%d)
3537
echo "next_toolchain_date=$next_toolchain_date" >> $GITHUB_ENV
36-
GH_TOKEN=${{ github.token }}
3738
if gh issue list -S \
3839
"Toolchain upgrade to nightly-$next_toolchain_date failed" \
3940
--json number,title | grep title ; then

0 commit comments

Comments
 (0)