mirror of
https://github.com/actions/runner.git
synced 2025-12-10 20:36:49 +00:00
Merge branch 'users/ethanchewy/compositetest2' of https://github.com/actions/runner into users/ethanchewy/compositeFileTable
This commit is contained in:
@@ -476,6 +476,7 @@ namespace GitHub.Runner.Worker
|
||||
{
|
||||
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.");
|
||||
}
|
||||
else
|
||||
|
||||
@@ -283,7 +283,7 @@ namespace GitHub.Runner.Worker
|
||||
// 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
|
||||
step.ExecutionContext.SetEnvironmentVariables(envData);
|
||||
Root.JobSteps.Insert(0, step);
|
||||
Root.JobSteps.Insert(location, step);
|
||||
}
|
||||
|
||||
public void SetEnvironmentVariables(Dictionary<string, string> dict)
|
||||
|
||||
@@ -105,6 +105,10 @@
|
||||
"job",
|
||||
"runner",
|
||||
"env",
|
||||
"always(0,0)",
|
||||
"failure(0,0)",
|
||||
"cancelled(0,0)",
|
||||
"success(0,0)",
|
||||
"hashFiles(1,255)"
|
||||
],
|
||||
"sequence": {
|
||||
|
||||
Reference in New Issue
Block a user