Compare commits

...

3 Commits

Author SHA1 Message Date
Thomas Boop
6d2be5f366 rename 2021-08-04 01:40:08 +00:00
Thomas Boop
2724797626 minor cleanup 2021-08-03 22:12:27 +00:00
Thomas Boop
fc57c796ce set context name for pre/post steps for composite actions 2021-08-03 21:49:05 +00:00
3 changed files with 5 additions and 5 deletions

View File

@@ -272,7 +272,7 @@ namespace GitHub.Runner.Worker
return; return;
} }
step.ExecutionContext = Root.CreatePostChild(step.DisplayName, IntraActionState); step.ExecutionContext = Root.CreatePostChild(step.DisplayName, IntraActionState, ContextName);
Root.PostJobSteps.Push(step); Root.PostJobSteps.Push(step);
} }
@@ -914,7 +914,7 @@ namespace GitHub.Runner.Worker
} }
} }
private IExecutionContext CreatePostChild(string displayName, Dictionary<string, string> intraActionState) private IExecutionContext CreatePostChild(string displayName, Dictionary<string, string> intraActionState, string contextName)
{ {
if (!_expandedForPostJob) if (!_expandedForPostJob)
{ {
@@ -924,7 +924,7 @@ namespace GitHub.Runner.Worker
} }
var newGuid = Guid.NewGuid(); var newGuid = Guid.NewGuid();
return CreateChild(newGuid, displayName, newGuid.ToString("N"), null, null, intraActionState, _childTimelineRecordOrder - Root.PostJobSteps.Count); return CreateChild(newGuid, displayName, newGuid.ToString("N"), null, contextName, intraActionState, _childTimelineRecordOrder - Root.PostJobSteps.Count);
} }
} }

View File

@@ -312,7 +312,7 @@ namespace GitHub.Runner.Worker
{ {
ArgUtil.NotNull(actionStep, step.DisplayName); ArgUtil.NotNull(actionStep, step.DisplayName);
Guid stepId = Guid.NewGuid(); Guid stepId = Guid.NewGuid();
actionStep.ExecutionContext = jobContext.CreateChild(stepId, actionStep.DisplayName, stepId.ToString("N"), null, null, intraActionStates[actionStep.Action.Id]); actionStep.ExecutionContext = jobContext.CreateChild(stepId, actionStep.DisplayName, stepId.ToString("N"), null, actionStep.Action.ContextName, intraActionStates[actionStep.Action.Id]);
} }
} }

View File

@@ -70,7 +70,7 @@ namespace GitHub.Runner.Worker
public bool Retain_Default_Encoding => true; public bool Retain_Default_Encoding => true;
#endif #endif
public bool? Step_Debug => GetBoolean(Constants.Variables.Actions.StepDebug); public bool? Step_Debug => true;
public string System_PhaseDisplayName => Get(Constants.Variables.System.PhaseDisplayName); public string System_PhaseDisplayName => Get(Constants.Variables.System.PhaseDisplayName);