mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-17 08:52:37 +00:00
fix exitcode bug when exitcode is 2
This commit is contained in:
parent
608d624bdf
commit
ec7f248c65
2 changed files with 4 additions and 2 deletions
3
dist/index1.js
vendored
3
dist/index1.js
vendored
|
|
@ -27973,7 +27973,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
|
||||
|
|
|
|||
|
|
@ -43,7 +43,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