mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 11:06: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:
8
.github/workflows/CoverageCollection.yml
vendored
8
.github/workflows/CoverageCollection.yml
vendored
@@ -79,6 +79,7 @@ jobs:
|
||||
id: getVariables
|
||||
shell: python
|
||||
run: |
|
||||
from os import environ
|
||||
from pathlib import Path
|
||||
from tomli import load as tomli_load
|
||||
|
||||
@@ -110,8 +111,11 @@ jobs:
|
||||
else:
|
||||
print(f"File '{coverageRCFile}' not found.")
|
||||
|
||||
print(f"::set-output name=coverage_report_html_directory::{htmlDirectory}")
|
||||
print(f"::set-output name=coverage_report_xml::{xmlFile}")
|
||||
with open(environ['GITHUB_OUTPUT'], 'a', encoding='utf-8') as gho:
|
||||
gho.write(f"""\
|
||||
coverage_report_html_directory={htmlDirectory}
|
||||
coverage_report_xml={xmlFile}
|
||||
""")
|
||||
print(f"DEBUG:\n html={htmlDirectory}\n xml={xmlFile}")
|
||||
|
||||
- name: Collect coverage
|
||||
|
||||
Reference in New Issue
Block a user