Skip to content

Commit d15902f

Browse files
authored
Update example of TerraformTask to also check for success to not get stuck (#273)
1 parent ba66dfa commit d15902f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tasks/TerraformTask/TerraformTaskV4/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Below is a basic example usage of a few commands within the TerraformTaskV4 task
128128
# Only runs if the 'terraformPlan' task has detected changes the in state.
129129
- task: TerraformTaskV4@4
130130
displayName: Apply Terraform Plan
131-
condition: eq(variables['terraformPlan.changesPresent'], 'true')
131+
condition: and(succeeded(), eq(variables['terraformPlan.changesPresent'], 'true'))
132132
inputs:
133133
provider: 'azurerm'
134134
command: 'apply'

0 commit comments

Comments
 (0)