From 27dba29e049b8b509a41cc377ad942ab56d684b3 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Mon, 14 Nov 2022 13:26:59 +0100 Subject: [PATCH] ci: fix deprecation of set-output in github workflows The -c flag on jq was used to emit JSON on a single line instead of ending up with multi-line output, which would make it harder to pass as output to an environment variable. --- .github/workflows/integration-test.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration-test.yaml b/.github/workflows/integration-test.yaml index a0cf9fa..c1d8e16 100644 --- a/.github/workflows/integration-test.yaml +++ b/.github/workflows/integration-test.yaml @@ -50,9 +50,9 @@ jobs: matrix_post_filter=$( echo "$matrix_include_pre_filter" \ | 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 $matrix_post_filter | jq '.'