From 69264e6e83e45ac1f85cacee38a0463f6f71d133 Mon Sep 17 00:00:00 2001 From: shiva kumar Date: Thu, 19 Dec 2024 19:43:00 +0530 Subject: [PATCH] unused aws instace and vpcs cleanup Signed-off-by: shiva kumar --- .github/workflows/awscleanup.yaml | 3 +++ 1 file changed, 3 insertions(+) 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? // [] |