github-action icon indicating copy to clipboard operation
github-action copied to clipboard

feat: combine stdout and stderr, pipe to tee

Open jamezrin opened this issue 11 months ago • 1 comments

Related to https://github.com/tailscale/github-action/issues/140

jamezrin avatar Jan 01 '25 00:01 jamezrin

Ideally it would be nice to set a variable and not send the logs to a file at all, but instead just let them come up in the job logs... this is a good start when it comes to debugging though, having this same problem around seeing errors logs right now.

lukeramsden avatar Feb 05 '25 16:02 lukeramsden

Apologies, the action is now implemented in JavaScript. If you'd be willing to resubmit your PR, we will review it.

Writing to a log file makes sense here, since tailscaled runs in the background and outputting its logs to the job's console would interfere with the interactive commands that get run after tailscaled starts.

Please set this up so that it only captures the output if debug logging is enabled. You can check for that with core.isDebug().

oxtoacart avatar Oct 20 '25 18:10 oxtoacart