mirror of
https://github.com/dtolnay/rust-toolchain.git
synced 2024-11-14 13:36:34 +02:00
Retitle cachekey step
This commit is contained in:
parent
9ca18f93cf
commit
d335e67920
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ runs:
|
||||||
shell: bash
|
shell: bash
|
||||||
- id: rustc-version
|
- id: rustc-version
|
||||||
run: |
|
run: |
|
||||||
: set outputs
|
: create cachekey
|
||||||
DATE=$(rustc --version --verbose | sed -ne 's/^commit-date: \(20[0-9][0-9]\)-\([01][0-9]\)-\([0-3][0-9]\)$/\1\2\3/p')
|
DATE=$(rustc --version --verbose | sed -ne 's/^commit-date: \(20[0-9][0-9]\)-\([01][0-9]\)-\([0-3][0-9]\)$/\1\2\3/p')
|
||||||
HASH=$(rustc --version --verbose | sed -ne 's/^commit-hash: //p')
|
HASH=$(rustc --version --verbose | sed -ne 's/^commit-hash: //p')
|
||||||
echo "::set-output name=cachekey::$(echo $DATE$HASH | head -c12)"
|
echo "::set-output name=cachekey::$(echo $DATE$HASH | head -c12)"
|
||||||
|
|
Loading…
Reference in a new issue