diff --git a/.github/workflows/get_info.py b/.github/workflows/get_info.py index 5011b3e..57b44be 100644 --- a/.github/workflows/get_info.py +++ b/.github/workflows/get_info.py @@ -8,14 +8,14 @@ import os import sys -print(os.path.abspath(os.curdir)) -print(os.listdir('.')) +# print(os.path.abspath(os.curdir)) +# print(os.listdir('.')) sys.path.append(os.path.abspath(os.curdir)) -print(sys.path) +# print(sys.path) if os.path.abspath(os.curdir) in sys.path: from Difficult_Rocket import DR_runtime print(f'DR_version={DR_runtime.DR_version}') - os.system(f'echo "DR_version={DR_runtime.DR_version}" >> $GITHUB_OUTPUT') + # os.system(f'echo "DR_version={DR_runtime.DR_version}" >> $GITHUB_OUTPUT') diff --git a/.github/workflows/nuitka.yml b/.github/workflows/nuitka.yml index 33e8143..e07ccfb 100644 --- a/.github/workflows/nuitka.yml +++ b/.github/workflows/nuitka.yml @@ -62,8 +62,10 @@ jobs: # 提取 DR 版本和其他信息 - name: Get Difficult-Rocket info id: DR_info - shell: bash - run: python .github/workflows/get_info.py + shell: pwsh + run: | + $infos = python .github/workflows/get_info.py + Write-Output $infos >> $env:GITHUB_ENV - name: Get DR toml info id: toml_info