try powershell
This commit is contained in:
parent
7162724cc2
commit
1193dcbe4f
10
.github/workflows/nuitka.yml
vendored
10
.github/workflows/nuitka.yml
vendored
@ -28,11 +28,19 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
# 获取短 sha
|
# 获取短 sha
|
||||||
- name: Get short commit sha
|
- name: Get short commit sha (bash)
|
||||||
|
if: ${{ runner.os == 'macOS' || runner.os == 'Linux' }}
|
||||||
id: get_short_sha
|
id: get_short_sha
|
||||||
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)
|
||||||
|
if: runner.os == 'Windows'
|
||||||
|
id: get_short_sha
|
||||||
|
run: |
|
||||||
|
$short_sha=${GITHUB_SHA}.substring(1,7)
|
||||||
|
Write-Output "short_sha=$short_sha" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
|
||||||
# 安装 Python
|
# 安装 Python
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
|
Loading…
Reference in New Issue
Block a user