ci: update the new nightly_version file in cron

This commit is contained in:
Andrew Poelstra 2024-04-07 14:10:11 +00:00
parent 5c56b69eed
commit 7d07fc3fb9
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ jobs:
# version of the compiler dtolnay/rust-toolchain gives us. # version of the compiler dtolnay/rust-toolchain gives us.
NIGHTLY_DATE=$(rustc +nightly --verbose --version | sed -ne 's/^commit-date: //p') NIGHTLY_DATE=$(rustc +nightly --verbose --version | sed -ne 's/^commit-date: //p')
# Update the nightly version in the reference file. # Update the nightly version in the reference file.
echo "nightly-${NIGHTLY_DATE}" > .github/nightly-version echo "nightly-${NIGHTLY_DATE}" > nightly-version
echo "nightly_date=${NIGHTLY_DATE}" >> $GITHUB_ENV echo "nightly_date=${NIGHTLY_DATE}" >> $GITHUB_ENV
# Some days there is no new nightly. In this case don't make an empty PR. # Some days there is no new nightly. In this case don't make an empty PR.
if ! git diff --exit-code > /dev/null; then if ! git diff --exit-code > /dev/null; then