mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-18 09:22:35 +00:00
Merge ec7f248c65 into 92e4d08fe1
This commit is contained in:
commit
e03e8ced80
4 changed files with 43 additions and 3 deletions
3
dist/index1.js
vendored
3
dist/index1.js
vendored
|
|
@ -28012,7 +28012,8 @@ async function checkTerraform () {
|
|||
core.setOutput('stderr', stderr.contents);
|
||||
core.setOutput('exitcode', exitCode.toString(10));
|
||||
|
||||
if (exitCode === 0 || exitCode === 2) {
|
||||
const usingDetailedExitcode = args.filter(arg => arg.toLowerCase().endsWith('-detailed-exitcode')).length > 0;
|
||||
if (exitCode === 0 || (exitCode === 2 && usingDetailedExitcode)) {
|
||||
// A exitCode of 0 is considered a success
|
||||
// An exitCode of 2 may be returned when the '-detailed-exitcode' option
|
||||
// is passed to plan. This denotes Success with non-empty
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue