Skip to content

Commit

Permalink
Add debug
Browse files Browse the repository at this point in the history
  • Loading branch information
eversC committed Nov 17, 2023
1 parent 3a5d1b3 commit eef2650
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/ci_concurrency.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ while true ; do
echo "failed to get CI workflows with status ${STATUS}"
WAIT=true
# if the count of workflows is 1, that's the current workflow we're running in
elif [ "${COUNT}" -gt "1" ] ; then
elif [ "${COUNT}" -gt "0" ] ; then
RUN_IDS=$(curl "${CURL_OPTS[@]}" -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${GITHUB_TOKEN}" "${API_CALL_URL}?status=${STATUS}" | jq -r '.workflow_runs[] | .id' || true)
for RUN_ID in $RUN_IDS ; do
echo "Checking run (id: ${RUN_ID}) for in_progress e2e_tests"
API_CALL_URL_JOBS=https://api.github.com/repos/ovotech/cloud-key-rotator/actions/runs/$RUN_ID
JOB_NAME_STATII=$(curl "${CURL_OPTS[@]}" -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${GITHUB_TOKEN}" "${API_CALL_URL_JOBS}" | jq -r '.jobs[] | .name,.status' || true)
for JOB_NAME_STATUS in $JOB_NAME_STATII; do
Expand Down

0 comments on commit eef2650

Please sign in to comment.