From a3351a38cb79844a94aa7abd5ec9beedcda06f3c Mon Sep 17 00:00:00 2001 From: Unai Martinez-Corral Date: Sat, 25 Feb 2023 16:38:51 +0100 Subject: ci/Release: set-output is deprecated https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ --- .github/workflows/Test.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to '.github/workflows/Test.yml') diff --git a/.github/workflows/Test.yml b/.github/workflows/Test.yml index 46e34a385..04c36c2d4 100644 --- a/.github/workflows/Test.yml +++ b/.github/workflows/Test.yml @@ -673,10 +673,14 @@ jobs: id: files shell: python run: | - print('None' - if '${{ github.ref }}'.startswith('refs/tags/') - else'::set-output name=list::**/*.zst **/*.tgz **/ghdl-*.zip **/man/ghdl.1' + from os import environ + list = ( + 'None' + if '${{ github.ref }}'.startswith('refs/tags/') else + '**/*.zst **/*.tgz **/ghdl-*.zip **/man/ghdl.1' ) + with open(environ['GITHUB_OUTPUT'], 'a', encoding='utf-8') as gho: + gho.write(f'list={list}\n') # Tagged: create a pre-release or a release (semver) # Untagged: update the assets of pre-release 'nightly' -- cgit v1.2.3