Fix Workflow Step Env overiding Parent Env

This commit is contained in:
Ethan Chiu
2020-06-25 13:53:41 -04:00
parent 1f6518dfad
commit 57d59fcd6e
2 changed files with 2 additions and 3 deletions

View File

@@ -58,7 +58,7 @@ namespace GitHub.Runner.Worker.Handlers
var envData = new Dictionary<string, string>();
// Copy over parent environment
foreach (var env in ExecutionContext.EnvironmentVariables)
foreach (var env in Environment)
{
envData[env.Key] = env.Value;
}

View File

@@ -160,8 +160,7 @@ namespace GitHub.DistributedTask.Pipelines.ObjectTemplating
}
public List<ActionStep> LoadCompositeSteps(
TemplateToken token
)
TemplateToken token)
{
var result = default(List<ActionStep>);
if (token != null && token.Type != TokenType.Null)