diff --git a/.changes/unreleased/BUG FIXES-20231027-092614.yaml b/.changes/unreleased/BUG FIXES-20231027-092614.yaml new file mode 100644 index 0000000..4202025 --- /dev/null +++ b/.changes/unreleased/BUG FIXES-20231027-092614.yaml @@ -0,0 +1,5 @@ +kind: BUG FIXES +body: Fixed malformed stdout when wrapper is enabled +time: 2023-10-27T09:26:14.675402-04:00 +custom: + Issue: "367" diff --git a/dist/index1.js b/dist/index1.js index 7a63d96..56af656 100755 --- a/dist/index1.js +++ b/dist/index1.js @@ -27222,7 +27222,7 @@ async function checkTerraform () { const options = { listeners, ignoreReturnCode: true, - silent: true, // work around github.com/actions/toolkit#649 + silent: true, // avoid printing command in stdout: https://github.com/actions/toolkit/issues/649 }; const exitCode = await exec(pathToCLI, args, options); @@ -27230,11 +27230,6 @@ async function checkTerraform () { 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}`); - core.debug(`exitcode: ${exitCode}`); - // Set outputs, result, exitcode, and stderr core.setOutput('stdout', stdout.contents); core.setOutput('stderr', stderr.contents); diff --git a/wrapper/terraform.js b/wrapper/terraform.js index 5d2b2cb..a64a4c2 100755 --- a/wrapper/terraform.js +++ b/wrapper/terraform.js @@ -34,7 +34,7 @@ async function checkTerraform () { const options = { listeners, ignoreReturnCode: true, - silent: true, // work around github.com/actions/toolkit#649 + silent: true, // avoid printing command in stdout: https://github.com/actions/toolkit/issues/649 }; const exitCode = await exec(pathToCLI, args, options); @@ -42,11 +42,6 @@ async function checkTerraform () { 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}`); - core.debug(`exitcode: ${exitCode}`); - // Set outputs, result, exitcode, and stderr core.setOutput('stdout', stdout.contents); core.setOutput('stderr', stderr.contents);