From 3d5da9136b670a45aae65f82fd6cdd8efff2edd3 Mon Sep 17 00:00:00 2001 From: Chintan Kavathia Date: Fri, 22 Nov 2024 17:46:33 +0530 Subject: [PATCH] chore: echo debug --- .github/workflows/test_and_deploy.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index 24a55df5e..c2ce7f390 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -66,6 +66,8 @@ jobs: while [ "$STATUS" = "in_progress" ] || [ "$STATUS" = "queued" ]; do sleep $CHECK_INTERVAL + echo "Polling for workflow status...$STATUS" + # Fetch latest workflow runs for Repository B RESPONSE=$(curl -s -H "Authorization: token $PAT" \ "https://api.github.com/repos/chintankavathia/siemens-datatable/actions/runs?branch=main&status=in_progress") @@ -74,6 +76,8 @@ jobs: STATUS=$(echo $RESPONSE | jq -r '.workflow_runs[0].status') done + echo "Polling for workflow status...$STATUS" + if [ "$STATUS" != "completed" ]; then echo "Repository Siemens Datatable workflow failed or was cancelled" exit 1