feat(terraform-wrapper): add variable for detailed-exitcode option

This commit is contained in:
Gaetan BOGAERT 2022-05-30 10:54:38 +02:00
parent 97360ea164
commit 03f41644a3

View file

@ -49,6 +49,8 @@ async function checkTerraform () {
return;
}
core.exportVariable(`TF_DETAILED_EXITCODE`,${exitCode})
// A non-zero exitCode is considered an error
core.setFailed(`Terraform exited with code ${exitCode}.`);
})();