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