Skip to content

Commit 5db1d23

Browse files
Add Terraform force-unlock step to VMSS deploy workflow
Introduces a step to force unlock the Terraform state in the VMSS deployment workflow, helping to resolve situations where the state may be stuck and blocking further operations.
1 parent 349f35a commit 5db1d23

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/vmss-deploy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ jobs:
4343
working-directory: ./gh-runners
4444
run: terraform init
4545

46+
- name: Force unlock if stuck
47+
working-directory: ./gh-runners
48+
continue-on-error: true
49+
run: terraform force-unlock -force f7767d91-1834-0df5-462d-c30ba2872217
50+
4651
- name: Terraform Validate
4752
working-directory: ./gh-runners
4853
run: terraform validate

0 commit comments

Comments
 (0)