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
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:
##[debug]Saved the plan to: dev.tfplan
##[debug]
##[debug]To perform exactly these actions, run the following command to apply:
##[debug] terraform apply "dev.tfplan"
##[debug]Releasing state lock. This may take a few moments...
##[debug]
##[debug]Set output stderr =
##[debug]Set output exitcode = 2
##[debug]Set output exitcode = 0
##[debug]Finishing: Terraform Plan
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.
The text was updated successfully, but these errors were encountered: