mirror of
https://github.com/dtolnay/rust-toolchain.git
synced 2026-04-08 17:42:12 +08:00
Retitle cachekey step
This commit is contained in:
@@ -49,7 +49,7 @@ runs:
|
||||
shell: bash
|
||||
- id: rustc-version
|
||||
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')
|
||||
HASH=$(rustc --version --verbose | sed -ne 's/^commit-hash: //p')
|
||||
echo "::set-output name=cachekey::$(echo $DATE$HASH | head -c12)"
|
||||
|
||||
Reference in New Issue
Block a user