mirror of
https://github.com/actions/runner.git
synced 2026-01-23 21:11:34 +08:00
step references
This commit is contained in:
@@ -155,6 +155,7 @@ namespace GitHub.Runner.Worker.Dap.StepCommands
|
|||||||
{
|
{
|
||||||
Id = stepId,
|
Id = stepId,
|
||||||
Name = id ?? $"_dynamic_{stepId:N}",
|
Name = id ?? $"_dynamic_{stepId:N}",
|
||||||
|
ContextName = id, // Required for step to appear in steps context (steps.<id>.outputs, etc.)
|
||||||
DisplayName = name ?? "Run script",
|
DisplayName = name ?? "Run script",
|
||||||
Reference = new ScriptReference(),
|
Reference = new ScriptReference(),
|
||||||
Condition = condition ?? "success()",
|
Condition = condition ?? "success()",
|
||||||
@@ -208,6 +209,7 @@ namespace GitHub.Runner.Worker.Dap.StepCommands
|
|||||||
{
|
{
|
||||||
Id = stepId,
|
Id = stepId,
|
||||||
Name = id ?? $"_dynamic_{stepId:N}",
|
Name = id ?? $"_dynamic_{stepId:N}",
|
||||||
|
ContextName = id, // Required for step to appear in steps context (steps.<id>.outputs, etc.)
|
||||||
DisplayName = name ?? actionReference,
|
DisplayName = name ?? actionReference,
|
||||||
Condition = condition ?? "success()",
|
Condition = condition ?? "success()",
|
||||||
Enabled = true
|
Enabled = true
|
||||||
|
|||||||
Reference in New Issue
Block a user