File tree Expand file tree Collapse file tree
.github/actions/verify-release-gate Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626 STATUS=""
2727 CONCLUSION=""
2828 while [ "$(date +%s)" -lt "$DEADLINE" ]; do
29- read -r STATUS CONCLUSION <<<"$(gh api "repos/${GITHUB_REPOSITORY}/commits/$SHA/check-runs" \
30- --jq "[. check_runs[] | select(.name == env.CHECK_NAME )] | sort_by(.started_at) | last | \"\\ (.status // \ "missing\ ") \\ (.conclusion // \ "null\")\"" )"
29+ read -r STATUS CONCLUSION <<<"$(gh api --paginate "repos/${GITHUB_REPOSITORY}/commits/$SHA/check-runs" \
30+ | jq -sr --arg check_name "$CHECK_NAME" '[.[]. check_runs[] | select(.name == $check_name )] | sort_by(.started_at) | last | if . == null then "missing null" else "\ (.status // "missing") \(.conclusion // "null")" end' )"
3131 echo "${CHECK_NAME} check-run: status=${STATUS} conclusion=${CONCLUSION}"
3232 if [ "$STATUS" = "completed" ]; then
3333 break
You can’t perform that action at this time.
0 commit comments