Open Dipak-Mistry-WTW opened 2 months ago
The wrapper that is installed by default masks the exit code. You can use the action with the terraform_wrapper: false
option, or you can change your tests to check for the outputs that the wrapper is already setting up.
When using Githust hosted runner the exitcode is set to 0 from Terraform plan step even when there are updates. At the end of the plan step I see:
Then in the Complete Job step I see:
The next job needs exitcode of 2 to run the terraform apply step.