From 6ab04e58e470fa60d3722df6e4ccc17bc6a1a1b4 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Thu, 29 Dec 2022 14:21:01 +0800 Subject: [PATCH] fix: id same --- .github/workflows/nuitka.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nuitka.yml b/.github/workflows/nuitka.yml index d53d8f8..fb5dbde 100644 --- a/.github/workflows/nuitka.yml +++ b/.github/workflows/nuitka.yml @@ -30,13 +30,13 @@ jobs: # 获取短 sha - name: Get short commit sha (bash) if: ${{ runner.os == 'macOS' || runner.os == 'Linux' }} - id: get_short_sha + id: get_short_sha_bash run: | short_sha=$(echo ${GITHUB_SHA} | cut -c1-7) echo "short_sha=$short_sha" >> $GITHUB_OUTPUT - name: Get short commit sha (powershell) if: runner.os == 'Windows' - id: get_short_sha + id: get_short_sha_powershell run: | $short_sha=${GITHUB_SHA}.substring(1,7) Write-Output "short_sha=$short_sha" >> $GITHUB_OUTPUT