mirror of
https://github.com/actions/runner.git
synced 2025-12-18 16:26:58 +00:00
Merge branch 'users/ethanchewy/compositetest2' of https://github.com/actions/runner into users/ethanchewy/compositeenv
This commit is contained in:
@@ -470,6 +470,7 @@ namespace GitHub.Runner.Worker
|
|||||||
{
|
{
|
||||||
if (stepsLoaded == null)
|
if (stepsLoaded == null)
|
||||||
{
|
{
|
||||||
|
// TODO: Add a more helpful error message + including file name, etc. to show user that it's because of their yaml file
|
||||||
throw new ArgumentNullException($"No steps provided.");
|
throw new ArgumentNullException($"No steps provided.");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -282,7 +282,7 @@ namespace GitHub.Runner.Worker
|
|||||||
// If the key already exists, we override it since the composite action env variables will have higher precedence
|
// If the key already exists, we override it since the composite action env variables will have higher precedence
|
||||||
// Note that for each composite action step, it's environment variables will be set in the StepRunner automatically
|
// Note that for each composite action step, it's environment variables will be set in the StepRunner automatically
|
||||||
step.ExecutionContext.SetEnvironmentVariables(envData);
|
step.ExecutionContext.SetEnvironmentVariables(envData);
|
||||||
Root.JobSteps.Insert(0, step);
|
Root.JobSteps.Insert(location, step);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetEnvironmentVariables(Dictionary<string, string> dict)
|
public void SetEnvironmentVariables(Dictionary<string, string> dict)
|
||||||
|
|||||||
@@ -1,15 +1,16 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using GitHub.DistributedTask.ObjectTemplating.Tokens;
|
||||||
|
using GitHub.DistributedTask.Pipelines.ContextData;
|
||||||
|
using GitHub.DistributedTask.WebApi;
|
||||||
using GitHub.Runner.Common;
|
using GitHub.Runner.Common;
|
||||||
using GitHub.Runner.Sdk;
|
using GitHub.Runner.Sdk;
|
||||||
using GitHub.DistributedTask.WebApi;
|
|
||||||
using Pipelines = GitHub.DistributedTask.Pipelines;
|
using Pipelines = GitHub.DistributedTask.Pipelines;
|
||||||
using System;
|
|
||||||
using System.Linq;
|
|
||||||
using GitHub.DistributedTask.ObjectTemplating.Tokens;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using GitHub.DistributedTask.Pipelines.ContextData;
|
|
||||||
|
|
||||||
namespace GitHub.Runner.Worker.Handlers
|
namespace GitHub.Runner.Worker.Handlers
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -105,6 +105,10 @@
|
|||||||
"job",
|
"job",
|
||||||
"runner",
|
"runner",
|
||||||
"env",
|
"env",
|
||||||
|
"always(0,0)",
|
||||||
|
"failure(0,0)",
|
||||||
|
"cancelled(0,0)",
|
||||||
|
"success(0,0)",
|
||||||
"hashFiles(1,255)"
|
"hashFiles(1,255)"
|
||||||
],
|
],
|
||||||
"sequence": {
|
"sequence": {
|
||||||
|
|||||||
Reference in New Issue
Block a user