Skip to content

Commit

Permalink
fixup! Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
omus committed Aug 13, 2024
1 parent 45b4337 commit 8d24c7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion job-name/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8d24c7f

Please sign in to comment.