mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 02:56:56 +08:00
set-output is deprecated
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
This commit is contained in:
9
.github/workflows/Parameters.yml
vendored
9
.github/workflows/Parameters.yml
vendored
@@ -65,6 +65,8 @@ jobs:
|
||||
id: params
|
||||
shell: python
|
||||
run: |
|
||||
from os import environ
|
||||
|
||||
name = '${{ inputs.name }}'
|
||||
params = {
|
||||
'python_version': '${{ inputs.python_version }}',
|
||||
@@ -76,7 +78,9 @@ jobs:
|
||||
'doc': f'{name}-doc',
|
||||
}
|
||||
}
|
||||
print(f'::set-output name=params::{params!s}')
|
||||
|
||||
with open(environ['GITHUB_OUTPUT'], 'a', encoding='utf-8') as gho:
|
||||
gho.write(f"params={params!s}\n")
|
||||
print("Parameters:")
|
||||
print(params)
|
||||
|
||||
@@ -114,6 +118,7 @@ jobs:
|
||||
for system in systems
|
||||
for version in (versions if system != 'msys2' else ['3.10'])
|
||||
]
|
||||
print(f'::set-output name=python_jobs::{jobs!s}')
|
||||
with open(environ['GITHUB_OUTPUT'], 'a', encoding='utf-8') as gho:
|
||||
gho.write(f"python_jobs={jobs!s}\n")
|
||||
print("Python jobs:")
|
||||
print(jobs)
|
||||
|
||||
Reference in New Issue
Block a user