Skip to content

Commit 030b547

Browse files
committed
Remove state unlock
1 parent 6477de3 commit 030b547

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

.github/workflows/_terraformEnvironmentTemplate.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -191,15 +191,6 @@ jobs:
191191
body: output
192192
})
193193
194-
# Terraform State Unlock
195-
- name: Terraform State Unlock
196-
working-directory: ${{ inputs.working_directory }}
197-
if: cancelled()
198-
run: |
199-
LOCK_ID=`jq -r '.ID' .terraform.tfstate.lock.info`
200-
echo $LOCK_ID
201-
terraform force-unlock -force $LOCK_ID
202-
203194
apply:
204195
name: Terraform Apply
205196
runs-on: [self-hosted]
@@ -255,12 +246,3 @@ jobs:
255246
env:
256247
CONFIG: ${{ inputs.config }}
257248
TF_VAR_my_secret: ${{ secrets.MY_SAMPLE_SECRET }}
258-
259-
# Terraform State Unlock
260-
- name: Terraform State Unlock
261-
working-directory: ${{ inputs.working_directory }}
262-
if: cancelled()
263-
run: |
264-
LOCK_ID=`jq -r '.ID' .terraform.tfstate.lock.info`
265-
echo $LOCK_ID
266-
terraform force-unlock -force $LOCK_ID

0 commit comments

Comments
 (0)