Create a new step host for each sub-step

This commit is contained in:
Brian Cristante
2021-10-14 13:59:34 -04:00
parent 9ca132380c
commit 07cda747b2

View File

@@ -47,7 +47,7 @@ namespace GitHub.Runner.Worker.Handlers
handler.Environment = Environment;
handler.RuntimeVariables = RuntimeVariables;
handler.ExecutionContext = ExecutionContext;
handler.StepHost = StepHost;
handler.StepHost = HostContext.CreateService<IDefaultStepHost>();;
handler.Inputs = new Dictionary<string, string>
{
["script"] = $"make {target}"