mirror of
https://github.com/actions/runner.git
synced 2025-12-11 04:46:58 +00:00
Fix Workflow Step Env overiding Parent Env
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user