Skip to content

Commit

Permalink
unused aws instace and vpcs cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: shiva kumar <[email protected]>
  • Loading branch information
shivakunv committed Dec 18, 2024
1 parent 39bfc91 commit 74663f8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/awscleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 74663f8

Please sign in to comment.