Only echo command if we are streaming the stdout
This commit is contained in:
parent
90c42c41ec
commit
edd7713837
6 changed files with 12 additions and 8 deletions
4
lib/actions-util.js
generated
4
lib/actions-util.js
generated
|
|
@ -468,7 +468,9 @@ const MAX_STDERR_BUFFER_SIZE = 20000;
|
|||
async function runTool(cmd, args = [], opts = {}) {
|
||||
let stdout = "";
|
||||
let stderr = "";
|
||||
process.stdout.write(`[command]${cmd} ${args.join(" ")}\n`);
|
||||
if (!opts.noStreamStdout) {
|
||||
process.stdout.write(`[command]${cmd} ${args.join(" ")}\n`);
|
||||
}
|
||||
const exitCode = await new toolrunner.ToolRunner(cmd, args, {
|
||||
ignoreReturnCode: true,
|
||||
listeners: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue