From c8266bfa089d0acb2e1219c5de157be4c046d98c Mon Sep 17 00:00:00 2001 From: Michael Tautschnig Date: Fri, 8 Sep 2023 18:56:38 +0300 Subject: [PATCH] Toolchain upgrade workflow: fix de-duplicating issues (#2749) --- .github/workflows/toolchain-upgrade.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/toolchain-upgrade.yml b/.github/workflows/toolchain-upgrade.yml index 18b2fe0d3c28..2c199161f9e0 100644 --- a/.github/workflows/toolchain-upgrade.yml +++ b/.github/workflows/toolchain-upgrade.yml @@ -27,13 +27,14 @@ jobs: os: ubuntu-22.04 - name: Update toolchain config + env: + GH_TOKEN: ${{ github.token }} run: | current_toolchain_date=$(grep ^channel rust-toolchain.toml | sed 's/.*nightly-\(.*\)"/\1/') echo "current_toolchain_date=$current_toolchain_date" >> $GITHUB_ENV 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