You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this feature going to be added back into this action in the future?
I had to create a workaround for this by adding the -detailed-exitcode to the terraform plan and creating my own error conditions and checks to see if I should run the apply job.
One of the downsides of this approach is that I see failures in the annotations when changes are required because the terraform plan exit code is 2.
- name: Terraform Plan - https://www.terraform.io/docs/commands/plan.htmlid: planrun: terraform plan -detailed-exitcode -input=false -out=plan.outcontinue-on-error: true
- name: Check for Plan Failureif: steps.plan.outputs.exitcode == 1run: exit 1outputs:
planExitcode: ${{ steps.plan.outputs.exitcode }}apply:
name: "Terraform: apply"needs: planif: needs.plan.outputs.planExitcode == 2runs-on: ubuntu-latest
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:
How can I do have a similar condition with
hashicorp/setup-terraform
?The text was updated successfully, but these errors were encountered: