diff --git a/lib/main.js b/lib/main.js index 4211c7e..6951def 100644 --- a/lib/main.js +++ b/lib/main.js @@ -63,11 +63,10 @@ function run() { else { // the *entire* stdout and stderr (buffered) console.log(`stdout: ${stdout}`); - myOutput = myOutput + `${stdout}`; + myOutput = myOutput + `${stdout}`.trim(); console.log(`stderr: ${stderr}`); } }); - myOutput = myOutput.trim(); // only contents of workspace can be changed by actions and used by subsequent actions // So copy all generated rpms into workspace , and publish output path relative to workspace yield exec.exec(`mkdir -p rpmbuild/SRPMS`); diff --git a/src/main.ts b/src/main.ts index 90f2ee6..1b7759d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -70,12 +70,11 @@ async function run() { } else { // the *entire* stdout and stderr (buffered) console.log(`stdout: ${stdout}`); - myOutput = myOutput+`${stdout}`; + myOutput = myOutput+`${stdout}`.trim(); console.log(`stderr: ${stderr}`); } }); - myOutput = myOutput.trim(); // only contents of workspace can be changed by actions and used by subsequent actions // So copy all generated rpms into workspace , and publish output path relative to workspace