From 8b638b716e726be14d21d271b54edb8631466e61 Mon Sep 17 00:00:00 2001 From: Curtis Vogt Date: Tue, 13 Aug 2024 13:46:37 -0500 Subject: [PATCH] fixup --- .github/workflows/integration-tests.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/integration-tests.yaml b/.github/workflows/integration-tests.yaml index e9dc7db..0796817 100644 --- a/.github/workflows/integration-tests.yaml +++ b/.github/workflows/integration-tests.yaml @@ -195,8 +195,8 @@ jobs: - name: Matches GitHub API name run: | jobs="$(gh api -X GET "/repos/{owner}/{repo}/actions/runs/${run_id:?}/attempts/${run_attempt:?}/jobs")" - if [[ $(jq --arg name "$job_name" '.jobs | map(select(.name == $name)) | length') -ne 1 ]]; then - jq '.jobs[].name' + if [[ $(jq --arg name "$job_name" '.jobs | map(select(.name == $name)) | length' <<<"${jobs}") -ne 1 ]]; then + jq '.jobs[].name' <<<"${jobs}" exit 1 fi env: @@ -230,8 +230,8 @@ jobs: - name: Matches GitHub API name run: | jobs="$(gh api -X GET "/repos/{owner}/{repo}/actions/runs/${run_id:?}/attempts/${run_attempt:?}/jobs")" - if [[ $(jq --arg name "$job_name" '.jobs | map(select(.name == $name)) | length') -ne 1 ]]; then - jq '.jobs[].name' + if [[ $(jq --arg name "$job_name" '.jobs | map(select(.name == $name)) | length' <<<"${jobs}") -ne 1 ]]; then + jq '.jobs[].name' <<<"${jobs}" exit 1 fi env: