又换回了bat尝试解决无法添加变量的问题

This commit is contained in:
2021-08-09 07:52:42 +08:00
parent ebc4e08986
commit b3ef90237f
3 changed files with 2 additions and 8 deletions

View File

@@ -23,7 +23,7 @@ jobs:
echo "CommitID=$CommitID" >> $env:GITHUB_ENV
- name: GetVersion
run: |
python .github/workflows/windowsGetVersion.py
.\.github\workflows\getVersion.bat
- name: Download love
run: |
curl -OL https://github.com/love2d/love/releases/download/11.3/love-11.3-win64.zip

View File

@@ -1,2 +1,2 @@
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

View File

@@ -1,6 +0,0 @@
import os
import getVersion
versionCode, versionName = getVersion.getVersion()
os.system(f'echo Version={versionName} >> $env:GITHUB_ENV')