Merge pull request #837 from consideRatio/pr/set-output

ci: fix deprecation of set-output in github workflows
This commit is contained in:
Erik Sundell
2022-11-16 07:52:28 +01:00
committed by GitHub

View File

@@ -50,12 +50,12 @@ jobs:
matrix_post_filter=$( matrix_post_filter=$(
echo "$matrix_include_pre_filter" \ echo "$matrix_include_pre_filter" \
| yq e --output-format=json '.' - \ | yq e --output-format=json '.' - \
| jq '{"include": map( . | select(.dont_run_on_ref != "${{ github.ref }}" ))}' | jq -c '{"include": map( . | select(.dont_run_on_ref != "${{ github.ref }}" ))}'
) )
echo ::set-output name=matrix::$(echo "$matrix_post_filter") echo "matrix=$matrix_post_filter" >> $GITHUB_OUTPUT
echo "The subsequent job's matrix are:" echo "The subsequent job's matrix are:"
echo $matrix_post_filter | jq '.' echo $matrix_post_filter | jq -C '.'
env: env:
matrix_include_pre_filter: | matrix_include_pre_filter: |
- name: "Int. tests: Ubuntu 18.04, Py 3.6" - name: "Int. tests: Ubuntu 18.04, Py 3.6"