diff --git a/action.yaml b/action.yaml index d0b679a..9d4e62c 100644 --- a/action.yaml +++ b/action.yaml @@ -88,7 +88,7 @@ runs: set -euo pipefail # https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#get-a-workflow-run-attempt - jobs="$(gh api -X GET "/repos/{owner}/{repo}/actions/runs/${run_id:?}/attempts/${run_attempt:?}/jobs")" + jobs="$(gh api --paginate -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]' <<<"${jobs}")" if [[ $(jq length <<<"${job_ids}") -eq 1 ]]; then