may work?

This commit is contained in:
shenjack 2022-12-30 11:06:12 +08:00
parent f3c3971596
commit 6e40772b1d

View File

@ -36,7 +36,7 @@ jobs:
# short_sha=$(echo ${GITHUB_SHA} | cut -c1-7)
# echo "short_sha=$short_sha" >> $GITHUB_OUTPUT
# echo $GITHUB_OUTPUT
$short_sha = Write-Output ${GITHUB_SHA}
$short_sha = Write-Output $env:GITHUB_SHA
$short_sha = $short_sha.substring(1,7)
Write-Output $short_sha
Write-Output "short_sha=$short_sha" >> $env:GITHUB_ENV