diff --git a/dist/index1.js b/dist/index1.js index a467ea5..21bc6a8 100755 --- a/dist/index1.js +++ b/dist/index1.js @@ -4210,13 +4210,14 @@ async function checkTofu () { const args = process.argv.slice(2); const options = { listeners, - ignoreReturnCode: true + ignoreReturnCode: true, + silent: true // don't print "[command...]" into stdout: https://github.com/actions/toolkit/issues/649 }; const exitCode = await exec(pathToCLI, args, options); - core.debug(`OpenTofu exited with code ${exitCode}.`); - core.debug(`stdout: ${stdout.contents}`); - core.debug(`stderr: ${stderr.contents}`); - core.debug(`exitcode: ${exitCode}`); + + // Pass-through stdout/err as `exec` won't due to `silent: true` option + process.stdout.write(stdout.contents); + process.stderr.write(stderr.contents); // Set outputs, result, exitcode, and stderr core.setOutput('stdout', stdout.contents); diff --git a/wrapper/tofu.js b/wrapper/tofu.js index 8b51161..a3f690a 100755 --- a/wrapper/tofu.js +++ b/wrapper/tofu.js @@ -33,13 +33,14 @@ async function checkTofu () { const args = process.argv.slice(2); const options = { listeners, - ignoreReturnCode: true + ignoreReturnCode: true, + silent: true // don't print "[command...]" into stdout: https://github.com/actions/toolkit/issues/649 }; const exitCode = await exec(pathToCLI, args, options); - core.debug(`OpenTofu exited with code ${exitCode}.`); - core.debug(`stdout: ${stdout.contents}`); - core.debug(`stderr: ${stderr.contents}`); - core.debug(`exitcode: ${exitCode}`); + + // Pass-through stdout/err as `exec` won't due to `silent: true` option + process.stdout.write(stdout.contents); + process.stderr.write(stderr.contents); // Set outputs, result, exitcode, and stderr core.setOutput('stdout', stdout.contents);