ci: update the new nightly_version file in cron
This commit is contained in:
parent
5c56b69eed
commit
7d07fc3fb9
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue