mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-27 13:33:37 +00:00
chore(action): Better explanation of change
This commit is contained in:
parent
4e5d7569e5
commit
5cd44b38b7
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ async function checkTerraform () {
|
||||||
core.setOutput('exitcode', exitCode.toString(10));
|
core.setOutput('exitcode', exitCode.toString(10));
|
||||||
|
|
||||||
// A non-zero exitCode is considered an error
|
// A non-zero exitCode is considered an error
|
||||||
// An exit-code 2 is used when the '-detailed-exitcode' option is passed to plan. this denotes Success with non-empty diff (changes present)
|
// An exit-code 2 may be returned when the '-detailed-exitcode' option is passed to plan. This denotes Success with non-empty diff (changes present).
|
||||||
if (exitCode !== 0 || exitCode !== 2 ) {
|
if (exitCode !== 0 || exitCode !== 2 ) {
|
||||||
core.setFailed(`Terraform exited with code ${exitCode}.`);
|
core.setFailed(`Terraform exited with code ${exitCode}.`);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue