又换回了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: |
|
||||||
python .github/workflows/windowsGetVersion.py
|
.\.github\workflows\getVersion.bat
|
||||||
- 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
|
||||||
|
|||||||
2
.github/workflows/getVersion.bat
vendored
2
.github/workflows/getVersion.bat
vendored
@@ -1,2 +1,2 @@
|
|||||||
for /F %%i in ('python .github/workflows/getVersion.py') do (set Version=%%i)
|
for /F %%i in ('python .github/workflows/getVersion.py') do (set Version=%%i)
|
||||||
echo Version=%Version% >> $env:GITHUB_ENV
|
powershell -Command echo "Version=%Version%" >> $env:GITHUB_ENV
|
||||||
6
.github/workflows/windowsGetVersion.py
vendored
6
.github/workflows/windowsGetVersion.py
vendored
@@ -1,6 +0,0 @@
|
|||||||
import os
|
|
||||||
import getVersion
|
|
||||||
|
|
||||||
versionCode, versionName = getVersion.getVersion()
|
|
||||||
|
|
||||||
os.system(f'echo Version={versionName} >> $env:GITHUB_ENV')
|
|
||||||
Reference in New Issue
Block a user