diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index c2ce7f390..ebccb2152 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -70,7 +70,9 @@ jobs: # 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") + "https://api.github.com/repos/chintankavathia/siemens-datatable/actions/runs?branch=main&status=any&page=1&per_page=1") + + echo "Raw API Response: $RESPONSE" RUN_ID=$(echo $RESPONSE | jq -r '.workflow_runs[0].id') STATUS=$(echo $RESPONSE | jq -r '.workflow_runs[0].status')