diff --git a/job-name/action.yaml b/job-name/action.yaml index 4dcc3cf..002f5e6 100644 --- a/job-name/action.yaml +++ b/job-name/action.yaml @@ -81,7 +81,7 @@ runs: set -euo pipefail set -x jobs="$(gh api -X GET "/repos/{owner}/{repo}/actions/runs/${run_id:?}/attempts/${run_attempt:?}/jobs")" - job_ids="$(jq -c --arg name "$job_name" '[.jobs | select(.name == $name) | .id]')" + job_ids="$(jq -c --arg name "$job_name" '[.jobs[] | select(.name == $name) | .id]')" echo "job-ids=${job_ids:?}" | tee -a "$GITHUB_OUTPUT" if [[ $(jq length <<<"${job_ids}") -eq 1 ]]; then