mirror of
https://github.com/actions/runner.git
synced 2025-12-13 00:36:29 +00:00
notes on todo tasks for refactoring to support different types of steps
This commit is contained in:
@@ -376,6 +376,7 @@ namespace GitHub.Runner.Worker
|
|||||||
{
|
{
|
||||||
var steps = run.Value.AssertSequence("steps");
|
var steps = run.Value.AssertSequence("steps");
|
||||||
var evaluator = executionContext.ToPipelineTemplateEvaluator();
|
var evaluator = executionContext.ToPipelineTemplateEvaluator();
|
||||||
|
// TODO: Change this so that we process each type of step
|
||||||
stepsLoaded = evaluator.LoadCompositeSteps(steps);
|
stepsLoaded = evaluator.LoadCompositeSteps(steps);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,6 +47,10 @@ namespace GitHub.Runner.Worker.Handlers
|
|||||||
|
|
||||||
// Add each composite action step to the front of the queue
|
// Add each composite action step to the front of the queue
|
||||||
int location = 0;
|
int location = 0;
|
||||||
|
|
||||||
|
// TODO: Assume that each step is not an actionStep
|
||||||
|
// How do we handle all types of steps?????
|
||||||
|
|
||||||
foreach (Pipelines.ActionStep aStep in actionSteps)
|
foreach (Pipelines.ActionStep aStep in actionSteps)
|
||||||
{
|
{
|
||||||
// Ex:
|
// Ex:
|
||||||
|
|||||||
@@ -159,6 +159,7 @@ namespace GitHub.DistributedTask.Pipelines.ObjectTemplating
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Change to return a variety of steps.
|
||||||
public List<ActionStep> LoadCompositeSteps(
|
public List<ActionStep> LoadCompositeSteps(
|
||||||
TemplateToken token)
|
TemplateToken token)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user