Skip to content

Commit

Permalink
modified workflow for more logs, for debugging purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
NkwaTambe committed Feb 5, 2025
1 parent ea19bb4 commit c1c48f5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/destroy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,15 @@ jobs:
-backend-config="bucket=webank-dev-terraform-state" \
-backend-config="dynamodb_table=webank-dev-terraform-state-lock"
- name: Check for Existing Lock
id: lock-check
run: |
LOCK_INFO=$(terraform state pull | jq '.serial')
if [ "$LOCK_INFO" != "0" ]; then
echo "Found existing lock, forcing unlock..."
fi
- name: Terraform Plan
run: |
terraform plan -destroy -var-file=${{ matrix.name }}.tfvars -out=plan.tfplan
Expand Down

0 comments on commit c1c48f5

Please sign in to comment.