mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-27 05:23:37 +00:00
feat(terraform-wrapper): add variable for detailed-exitcode option
This commit is contained in:
parent
97360ea164
commit
03f41644a3
1 changed files with 2 additions and 0 deletions
|
|
@ -49,6 +49,8 @@ async function checkTerraform () {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
core.exportVariable(`TF_DETAILED_EXITCODE`,${exitCode})
|
||||||
|
|
||||||
// A non-zero exitCode is considered an error
|
// A non-zero exitCode is considered an error
|
||||||
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