diff --git a/.github/workflows/awscleanup.yaml b/.github/workflows/awscleanup.yaml index 7459d250..a66544d1 100644 --- a/.github/workflows/awscleanup.yaml +++ b/.github/workflows/awscleanup.yaml @@ -62,6 +62,9 @@ jobs: # e.g. { "message": "Not Found", "documentation_url": "https://docs.github.com/rest", "status": "404" } # 2. check if all jobs completed is_jobs_not_completed=1 + echo "SHIVA $response" + echo "$response" | jq -e '.jobs? // null' + echo "SHIVA===" jobs_exist=$(echo "$response" | jq -e '.jobs? // null' >/dev/null 2>&1; echo $?) if [[ "$jobs_exist" -ne 0 ]]; then is_jobs_not_completed=$(echo "$response" | jq -r ".jobs? // [] |