ruaaaaa: try bash on windows

This commit is contained in:
shenjack 2022-12-29 15:40:32 +08:00
parent b2df4a52a4
commit b90858c429

View File

@ -31,11 +31,14 @@ jobs:
# 获取短 sha
- name: Get short commit sha
id: get_short_sha
shell: pwsh
shell: bash
run: |
$short_sha = Write-Output $`{GITHUB_SHA`}
$short_sha = $short_sha.substring(1,7)
Write-Output "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