use env
This commit is contained in:
parent
700e10df87
commit
02ebf76933
8
.github/workflows/get_info.py
vendored
8
.github/workflows/get_info.py
vendored
@ -8,14 +8,14 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
print(os.path.abspath(os.curdir))
|
# print(os.path.abspath(os.curdir))
|
||||||
print(os.listdir('.'))
|
# print(os.listdir('.'))
|
||||||
sys.path.append(os.path.abspath(os.curdir))
|
sys.path.append(os.path.abspath(os.curdir))
|
||||||
print(sys.path)
|
# print(sys.path)
|
||||||
|
|
||||||
if os.path.abspath(os.curdir) in sys.path:
|
if os.path.abspath(os.curdir) in sys.path:
|
||||||
from Difficult_Rocket import DR_runtime
|
from Difficult_Rocket import DR_runtime
|
||||||
|
|
||||||
print(f'DR_version={DR_runtime.DR_version}')
|
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')
|
||||||
|
|
||||||
|
6
.github/workflows/nuitka.yml
vendored
6
.github/workflows/nuitka.yml
vendored
@ -62,8 +62,10 @@ jobs:
|
|||||||
# 提取 DR 版本和其他信息
|
# 提取 DR 版本和其他信息
|
||||||
- name: Get Difficult-Rocket info
|
- name: Get Difficult-Rocket info
|
||||||
id: DR_info
|
id: DR_info
|
||||||
shell: bash
|
shell: pwsh
|
||||||
run: python .github/workflows/get_info.py
|
run: |
|
||||||
|
$infos = python .github/workflows/get_info.py
|
||||||
|
Write-Output $infos >> $env:GITHUB_ENV
|
||||||
|
|
||||||
- name: Get DR toml info
|
- name: Get DR toml info
|
||||||
id: toml_info
|
id: toml_info
|
||||||
|
Loading…
Reference in New Issue
Block a user