mirror of
https://github.com/actions/runner.git
synced 2025-12-13 10:05:23 +00:00
Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
This commit is contained in:
@@ -431,6 +431,7 @@ namespace GitHub.Runner.Worker
|
|||||||
{
|
{
|
||||||
executionContext.Output($"##[group]Container {container.ContainerImage} failed healthchecks, printing logs:");
|
executionContext.Output($"##[group]Container {container.ContainerImage} failed healthchecks, printing logs:");
|
||||||
await _dockerManager.DockerLogs(context: executionContext, containerId: container.ContainerId);
|
await _dockerManager.DockerLogs(context: executionContext, containerId: container.ContainerId);
|
||||||
|
executionContext.Error($"Failed to initialize container {container.ContainerImage}");
|
||||||
executionContext.Output("##[endgroup]");
|
executionContext.Output("##[endgroup]");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user