ci: Get rid of set-output

Fixes #7439
This commit is contained in:
Florian Bruhin 2022-11-03 11:53:28 +01:00
parent fd3d23270e
commit 0ff0eaa703
2 changed files with 11 additions and 12 deletions

View File

@ -97,8 +97,8 @@ jobs:
- name: Gather info
id: info
run: |
echo "::set-output name=date::$(date +'%Y-%m-%d')"
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
echo "date=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT"
echo "sha_short=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:

View File

@ -335,16 +335,15 @@ def print_changed_files():
print(changes_text)
if utils.ON_CI:
print()
print('::set-output name=changed::' +
files_text.replace('\n', '%0A'))
table_header = [
'| File | Requirement | old | new |',
'|------|-------------|-----|-----|',
]
diff_table = '%0A'.join(table_header +
[change.table_str() for change in changes])
print('::set-output name=diff::' + diff_table)
with open(os.environ["GITHUB_OUTPUT"], "a", encoding="utf-8") as f:
f.write('changed=' + files_text.replace('\n', '%0A'))
table_header = [
'| File | Requirement | old | new |',
'|------|-------------|-----|-----|',
]
diff_table = '%0A'.join(
table_header + [change.table_str() for change in changes])
f.write(f'diff={diff_table}')
def get_host_python(name):