How to detect changes in plan step #405
-
Hi team,
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
This is likely because of "hashicorp/setup-terraform" being used without - name: Checkout repo
uses: actions/checkout@v4
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_wrapper: false
- name: Terraform Plan
id: plan
uses: op5dev/tf-via-pr@v13
with:
working-directory: "./xyz"
command: plan
arg-lock: false
validate: true
- name: Terraform Apply
uses: op5dev/tf-via-pr@v13
if: steps.plan.outputs.exitcode == 2
with:
working-directory: "./xyz"
command: apply
arg-lock: true You don't need to give the following inputs, as they are set automatically to sensible defaults:
There are plenty more workflow examples you can pick-and-mix from.
|
Beta Was this translation helpful? Give feedback.
This is likely because of "hashicorp/setup-terraform" being used without
terraform_wrapper: false
, as documented in their repo's open issue. Here's how to work around it to meet your given requirements:You don't need …