Need to explictly use ActionStep type since we need the .Inputs attribute which is only found in the ActionStep not IStep

This commit is contained in:
Ethan Chiu
2020-07-21 17:36:40 -04:00
parent a22fcbc036
commit 3381b951a0

View File

@@ -17,13 +17,13 @@ namespace GitHub.DistributedTask.Pipelines.ObjectTemplating
[EditorBrowsable(EditorBrowsableState.Never)]
public static class PipelineTemplateConverter
{
public static List<Step> ConvertToSteps(
public static List<ActionStep> ConvertToSteps(
TemplateContext context,
TemplateToken steps)
{
var stepsSequence = steps.AssertSequence($"job {PipelineTemplateConstants.Steps}");
var result = new List<Step>();
var result = new List<ActionStep>();
var nameBuilder = new ReferenceNameBuilder();
foreach (var stepsItem in stepsSequence)
{