diff options
-rw-r--r-- | .github/workflows/Test.yml | 10 |
1 files changed, 7 insertions, 3 deletions
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' |