Skip to content

Commit

Permalink
Toolchain upgrade workflow: fix de-duplicating issues (model-checking…
Browse files Browse the repository at this point in the history
  • Loading branch information
tautschnig authored Sep 8, 2023
1 parent 18ea9e9 commit c8266bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/toolchain-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c8266bf

Please sign in to comment.