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
-detailed-exitcode - Returns a detailed exit code when the command exits. When provided, this argument changes the exit codes and their meanings to provide more granular information about what the resulting plan contains:
0 = Succeeded with empty diff (no changes)
1 = Error
2 = Succeeded with non-empty diff (changes present)
Therefore, we can use steps.plan.outputs.exitcode and only run the apply job if the exit code is 2.
Motivation
Saves time and money.
The text was updated successfully, but these errors were encountered:
Description
Skip Terraform apply if plan has 0 changes.
-detailed-exitcode - Returns a detailed exit code when the command exits. When provided, this argument changes the exit codes and their meanings to provide more granular information about what the resulting plan contains:
Therefore, we can use
steps.plan.outputs.exitcode
and only run the apply job if the exit code is 2.Motivation
Saves time and money.
The text was updated successfully, but these errors were encountered: