diff --git a/wrapper/terraform.js b/wrapper/terraform.js index eddcb35f..94a38497 100755 --- a/wrapper/terraform.js +++ b/wrapper/terraform.js @@ -46,6 +46,10 @@ async function checkTerraform () { core.setOutput('stderr', stderr.contents); core.setOutput('exitcode', exitCode.toString(10)); + // Pass-through stdout/err in case we're being used in a pipeline or variable assignment + process.stdout.write(stdout.contents); + process.stderr.write(stderr.contents); + if (exitCode === 0 || exitCode === 2) { // A exitCode of 0 is considered a success // An exitCode of 2 may be returned when the '-detailed-exitcode' option