This commit is contained in:
shenjack 2022-12-29 15:41:39 +08:00
parent b90858c429
commit 1c6b4efa7a

View File

@ -33,12 +33,12 @@ jobs:
id: get_short_sha
shell: bash
run: |
# $short_sha = Write-Output $`{GITHUB_SHA`}
# $short_sha = $short_sha.substring(1,7)
# Write-Output $short_sha
# Write-Output "short_sha=$short_sha" >> $GITHUB_OUTPUT
short_sha=$(echo ${GITHUB_SHA} | cut -c1-7)
echo "short_sha=$short_sha" >> $GITHUB_OUTPUT
# $short_sha = Write-Output $`{GITHUB_SHA`}
# $short_sha = $short_sha.substring(1,7)
# Write-Output $short_sha
# Write-Output "short_sha=$short_sha" >> $GITHUB_OUTPUT
short_sha=$(echo ${GITHUB_SHA} | cut -c1-7)
echo "short_sha=$short_sha" >> $GITHUB_OUTPUT
# 安装 Python