mirror of
https://github.com/actions/runner.git
synced 2025-12-11 04:46:58 +00:00
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:
@@ -17,13 +17,13 @@ namespace GitHub.DistributedTask.Pipelines.ObjectTemplating
|
|||||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||||
public static class PipelineTemplateConverter
|
public static class PipelineTemplateConverter
|
||||||
{
|
{
|
||||||
public static List<Step> ConvertToSteps(
|
public static List<ActionStep> ConvertToSteps(
|
||||||
TemplateContext context,
|
TemplateContext context,
|
||||||
TemplateToken steps)
|
TemplateToken steps)
|
||||||
{
|
{
|
||||||
var stepsSequence = steps.AssertSequence($"job {PipelineTemplateConstants.Steps}");
|
var stepsSequence = steps.AssertSequence($"job {PipelineTemplateConstants.Steps}");
|
||||||
|
|
||||||
var result = new List<Step>();
|
var result = new List<ActionStep>();
|
||||||
var nameBuilder = new ReferenceNameBuilder();
|
var nameBuilder = new ReferenceNameBuilder();
|
||||||
foreach (var stepsItem in stepsSequence)
|
foreach (var stepsItem in stepsSequence)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user