尝试使用python解决bat无法添加变量的问题
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -23,7 +23,7 @@ jobs:
|
|||||||
echo "CommitID=$CommitID" >> $env:GITHUB_ENV
|
echo "CommitID=$CommitID" >> $env:GITHUB_ENV
|
||||||
- name: GetVersion
|
- name: GetVersion
|
||||||
run: |
|
run: |
|
||||||
.\.github\workflows\getVersion.bat
|
python .github/workflows/windowsGetVersion.py
|
||||||
- name: Download love
|
- name: Download love
|
||||||
run: |
|
run: |
|
||||||
curl -OL https://github.com/love2d/love/releases/download/11.3/love-11.3-win64.zip
|
curl -OL https://github.com/love2d/love/releases/download/11.3/love-11.3-win64.zip
|
||||||
|
|||||||
6
.github/workflows/windowsGetVersion.py
vendored
Normal file
6
.github/workflows/windowsGetVersion.py
vendored
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import os
|
||||||
|
import getVersion
|
||||||
|
|
||||||
|
versionCode, versionName = getVersion.getVersion()
|
||||||
|
|
||||||
|
os.system(f'echo Version={versionName} >> $env:GITHUB_ENV')
|
||||||
Reference in New Issue
Block a user