diff --git a/.github/workflows/awscleanup.yaml b/.github/workflows/awscleanup.yaml index 7e619ba6..7a88fa0f 100644 --- a/.github/workflows/awscleanup.yaml +++ b/.github/workflows/awscleanup.yaml @@ -43,12 +43,18 @@ jobs: - name: Clean up VPCs if: env.vpcs != '' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | for vpc in $vpcs; do + GITHUB_REPOSITORY1=gpu-driver-container + RUN_ID1="12338981626" + JOB_NAME=e2e-tests-nvidiadriver response=$(curl -s -H "Authorization: Bearer $GITHUB_TOKEN" \ - "https://api.github.com/repos/${GITHUB_REPOSITORY}/actions/runs/${RUN_ID}/jobs") + "https://api.github.com/repos/${GITHUB_REPOSITORY1}/actions/runs/${RUN_ID1}/jobs") echo "Response: $response" + echo "SHIVA $response" status=$(echo "$response" | jq -r ".jobs[] | select(.name == \"$JOB_NAME\") | .status") conclusion=$(echo "$response" | jq -r ".jobs[] | select(.name == \"$JOB_NAME\") | .conclusion")