Skip to content

Commit

Permalink
Merge pull request #13 from kamranf/master
Browse files Browse the repository at this point in the history
Fetch max number of jobs when checking status
  • Loading branch information
martialonline authored Apr 11, 2024
2 parents 0edccb7 + 3a44e68 commit bf644f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ runs:
run_id="${GITHUB_RUN_ID}"
token="${{ github.token }}"
failure=$(curl -s -H "Authorization: token ${token}" "${url}/${repo}/actions/runs/${run_id}/jobs" | \
failure=$(curl -s -H "Authorization: token ${token}" "${url}/${repo}/actions/runs/${run_id}/jobs?per_page=100" | \
jq -r '.jobs[] | select(.status == "completed" and .conclusion == "failure").conclusion' | \
wc -l)
cancelled=$(curl -s -H "Authorization: token ${token}" "${url}/${repo}/actions/runs/${run_id}/jobs" | \
cancelled=$(curl -s -H "Authorization: token ${token}" "${url}/${repo}/actions/runs/${run_id}/jobs?per_page=100" | \
jq -r '.jobs[] | select(.status == "completed" and .conclusion == "cancelled").conclusion' | \
wc -l)
Expand Down

0 comments on commit bf644f3

Please sign in to comment.