Retitle cachekey step

This commit is contained in:
David Tolnay 2022-07-15 11:10:03 -07:00
parent 9ca18f93cf
commit d335e67920
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

@ -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)"