fix: id same
This commit is contained in:
parent
1193dcbe4f
commit
6ab04e58e4
4
.github/workflows/nuitka.yml
vendored
4
.github/workflows/nuitka.yml
vendored
@ -30,13 +30,13 @@ jobs:
|
|||||||
# 获取短 sha
|
# 获取短 sha
|
||||||
- name: Get short commit sha (bash)
|
- name: Get short commit sha (bash)
|
||||||
if: ${{ runner.os == 'macOS' || runner.os == 'Linux' }}
|
if: ${{ runner.os == 'macOS' || runner.os == 'Linux' }}
|
||||||
id: get_short_sha
|
id: get_short_sha_bash
|
||||||
run: |
|
run: |
|
||||||
short_sha=$(echo ${GITHUB_SHA} | cut -c1-7)
|
short_sha=$(echo ${GITHUB_SHA} | cut -c1-7)
|
||||||
echo "short_sha=$short_sha" >> $GITHUB_OUTPUT
|
echo "short_sha=$short_sha" >> $GITHUB_OUTPUT
|
||||||
- name: Get short commit sha (powershell)
|
- name: Get short commit sha (powershell)
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
id: get_short_sha
|
id: get_short_sha_powershell
|
||||||
run: |
|
run: |
|
||||||
$short_sha=${GITHUB_SHA}.substring(1,7)
|
$short_sha=${GITHUB_SHA}.substring(1,7)
|
||||||
Write-Output "short_sha=$short_sha" >> $GITHUB_OUTPUT
|
Write-Output "short_sha=$short_sha" >> $GITHUB_OUTPUT
|
||||||
|
Loading…
Reference in New Issue
Block a user