aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorUnai Martinez-Corral <unai.martinezcorral@ehu.eus>2023-02-25 16:38:51 +0100
committereine <eine@users.noreply.github.com>2023-02-26 15:46:22 +0100
commita3351a38cb79844a94aa7abd5ec9beedcda06f3c (patch)
tree81d36d69c6a35190d481d4210a45b851efa54866 /.github
parentdbd6c1c2dc45a6ef2df46f0493890e2a1b6a7ddf (diff)
downloadghdl-a3351a38cb79844a94aa7abd5ec9beedcda06f3c.tar.gz
ghdl-a3351a38cb79844a94aa7abd5ec9beedcda06f3c.tar.bz2
ghdl-a3351a38cb79844a94aa7abd5ec9beedcda06f3c.zip
ci/Release: set-output is deprecated
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/Test.yml10
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'