hashicorp / hashicorp/setup-terraform
How stop workflow when the plan detects no changes
- Dominant language
- JavaScript
- Stars
- 1.6k
- Forks
- 288
- Avg merge
- 23h 21m
- Merged PRs (30d)
- 3
Description
What is the easiest way to find if the "terraform plan" command detect zero changes so I can stop the workflow and don't call "terraform apply"?
With the previous edition this action (hashicorp/terraform-github-actions) I could use a condition like below:
```
- name: 'Terraform Apply'
if: steps.tf_plan.outputs.tf_actions_plan_has_changes == 'true'
id: terraform_apply
uses: hashicorp/terraform-github-actions@master
with:
tf_actions_version: ${{ env.tf_version }}
tf_actions_subcommand: 'apply'
```
How can I do have a similar condition with `hashicorp/setup-terraform` ?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.