Skip to content

Commit

Permalink
Updated the changes to test the retries
Browse files Browse the repository at this point in the history
  • Loading branch information
Samyak Rout committed Nov 17, 2024
1 parent a1f4bd4 commit 7d529c7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/manual: Generate-TF-Plan-Diagram.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ jobs:
# Step 6: Terraform Plan (Run on all branches)
- name: Terraform Plan
run: |
terraform plan -input=false -lock=true -refresh=true -out /tmp/plan.out
while ! terraform plan -input=false -lock=true -refresh=true -out /tmp/plan.out; do
echo "State is locked. Retrying in 30 seconds..."
sleep 30
done
terraform show -json /tmp/plan.out > plan.json
docker run --rm -it -p 9000:9000 -v /tmp/plan.json:/src/plan.json im2nguyen/rover:latest -planJSONPath=plan.json
working-directory: infra_env_dashboard/infra-automation
Expand Down

0 comments on commit 7d529c7

Please sign in to comment.