This commit is contained in:
shenjack 2022-12-30 11:18:14 +08:00
parent 700e10df87
commit 02ebf76933
2 changed files with 8 additions and 6 deletions

View File

@ -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')

View File

@ -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