mirror of
https://github.com/actions/runner.git
synced 2025-12-14 04:53:34 +00:00
Trace javascript action exit code instead of user logs (#290)
* Trace javascript action exit code instead of user logs * Debug instead of trace
This commit is contained in:
@@ -193,9 +193,9 @@ namespace GitHub.Runner.Worker.Handlers
|
||||
using (var stderrManager = new OutputManager(ExecutionContext, ActionCommandManager, container))
|
||||
{
|
||||
var runExitCode = await dockerManger.DockerRun(ExecutionContext, container, stdoutManager.OnDataReceived, stderrManager.OnDataReceived);
|
||||
ExecutionContext.Debug($"Docker Action run completed with exit code {runExitCode}");
|
||||
if (runExitCode != 0)
|
||||
{
|
||||
ExecutionContext.Error($"Docker run failed with exit code {runExitCode}");
|
||||
ExecutionContext.Result = TaskResult.Failed;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user