toolkit icon indicating copy to clipboard operation
toolkit copied to clipboard

Fix tool output mangled with spawned cmd string

Open OJFord opened this issue 2 years ago • 1 comments

Presently if the exec'd tool is expected to produce an output (i.e. to write to stdout) that can be consumed in a Unix pipeline, assigned to a variable, or similar; the silent option must be set in order to avoid the output being mangled by @actions/exec to include the full command string that it spawns (and then re-writing out from the provided stdout listener).

This commit writes the spawned command string to stderr instead of stdout, as would be expected for logging/debug information as opposed to consumable output data.

Closes #649.

OJFord avatar Oct 26 '23 16:10 OJFord

@bdehamer I've read contributing, have I missed a CLA or something? Would appreciate a review when someone has a chance; still here and happy to update as necessary.

OJFord avatar Sep 17 '24 22:09 OJFord