Compare commits

..

2 Commits

Author SHA1 Message Date
Sascha Mann
26bda12c02 Remove deprecated command #33 2022-10-14 17:38:48 +02:00
Sascha Mann
08f6ca9894 Remove deprecated set-output command (#32)
* Remove deprecated set-output command

See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ & https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter

* Update action.yml

Co-authored-by: Rik Huijzer <t.h.huijzer@rug.nl>

Co-authored-by: Rik Huijzer <t.h.huijzer@rug.nl>
2022-10-14 16:02:53 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ jobs:
run: 'write("random.txt", string(rand(10)))'
- name: Set cache-name as output
id: name
run: echo "::set-output name=cache-name::${{ hashFiles('random.txt') }}"
run: echo "cache-name=${{ hashFiles('random.txt') }}" >> $GITHUB_OUTPUT
test-save:
needs: generate-key

View File

@@ -47,7 +47,7 @@ runs:
${{ runner.os }}-test-${{ inputs.cache-name }}-
- id: hit
run: echo "::set-output name=cache-hit::$(echo $CACHE_HIT)"
run: echo "cache-hit=$CACHE_HIT" >> $GITHUB_OUTPUT
env:
CACHE_HIT: ${{ steps.cache.outputs.cache-hit }}
shell: bash