From b90858c4294657911477bbba6023e5daea066252 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Thu, 29 Dec 2022 15:40:32 +0800 Subject: [PATCH] ruaaaaa: try bash on windows --- .github/workflows/nuitka.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nuitka.yml b/.github/workflows/nuitka.yml index d957a7f..d8fa5b7 100644 --- a/.github/workflows/nuitka.yml +++ b/.github/workflows/nuitka.yml @@ -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