diff --git a/dist/index1.js b/dist/index1.js index 42444df..7a63d96 100755 --- a/dist/index1.js +++ b/dist/index1.js @@ -27221,9 +27221,15 @@ async function checkTerraform () { const args = process.argv.slice(2); const options = { listeners, - ignoreReturnCode: true + ignoreReturnCode: true, + silent: true, // work around github.com/actions/toolkit#649 }; const exitCode = await exec(pathToCLI, args, options); + + // Pass-through stdout/err as `exec` won't due to `silent: true` option + process.stdout.write(stdout.contents); + process.stderr.write(stderr.contents); + core.debug(`Terraform exited with code ${exitCode}.`); core.debug(`stdout: ${stdout.contents}`); core.debug(`stderr: ${stderr.contents}`); diff --git a/wrapper/terraform.js b/wrapper/terraform.js index eddcb35..5d2b2cb 100755 --- a/wrapper/terraform.js +++ b/wrapper/terraform.js @@ -33,9 +33,15 @@ async function checkTerraform () { const args = process.argv.slice(2); const options = { listeners, - ignoreReturnCode: true + ignoreReturnCode: true, + silent: true, // work around github.com/actions/toolkit#649 }; const exitCode = await exec(pathToCLI, args, options); + + // Pass-through stdout/err as `exec` won't due to `silent: true` option + process.stdout.write(stdout.contents); + process.stderr.write(stderr.contents); + core.debug(`Terraform exited with code ${exitCode}.`); core.debug(`stdout: ${stdout.contents}`); core.debug(`stderr: ${stderr.contents}`);