Display short commit name

This commit is contained in:
Martin Leduc 2024-06-21 20:43:34 -04:00 committed by GitHub
parent 9f156d186b
commit 8c3d765eb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,6 +22,7 @@ jobs:
set -euo pipefail
IFS=$'\n\t'
commit=$(sed --quiet --regexp-extended 's/[[:space:]]+commit[[:space:]]+=[[:space:]]"([a-f0-9]{40})"/\1/p' internal/code-generator/generator/generator_test.go)
echo "Previous commit: ${commit::8}"
echo "::set-output name=commit::$commit"
echo "::set-output name=short_commit::${commit::8}"
- uses: actions/checkout@v2