From 089a5262b061e6065664e5fc440d0d1b53c3d770 Mon Sep 17 00:00:00 2001 From: Curtis Vogt Date: Thu, 15 Aug 2024 22:59:06 -0500 Subject: [PATCH] fixup --- action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yaml b/action.yaml index f4db9ab..c05bf54 100644 --- a/action.yaml +++ b/action.yaml @@ -122,7 +122,7 @@ runs: # Combine the `executed_jobs` into the `artifact_jobs` data (left join) to produce list of jobs in the matrix. # For more info on `jq`'s SQL style JOIN see: https://qmacro.org/blog/posts/2022/06/23/understanding-jq%27s-sql-style-operators-join-and-index/ - matrix_jobs="$(jq -n --argjson aj "${artifact_jobs}" --argjson ej "${executed_jobs}" 'JOIN(INDEX($ej[]; .id); $aj[]; (.id | tostring); add)')" + matrix_jobs="$(jq -n --argjson aj "${artifact_jobs}" --argjson ej "${executed_jobs}" '[JOIN(INDEX($ej[]; .id); $aj[]; (.id | tostring); add)]')" num_jobs="$(jq length <<<"${matrix_jobs}")" num_running_jobs="$(jq 'map(select(.conclusion == null)) | length' <<<"${matrix_jobs}")"