I’m trying to only run a certain step if the user selects an input option. e.g I want to run the terraform apply step if the user selects Apply. So far I have this:
steps:
- block: "Options"
key: "Options"
fields:
- select: "Action"
key: "action"
options:
- label: "APPLY"
value: "apply"
- label: "DESTROY"
value: "destroy"
- label: Terraform Apply
key: "apply"
command: <commands>
if: (key:action == apply)
What’s the correct formatting for the if line to make this work?