mirror of
https://github.com/actions/runner.git
synced 2025-12-13 00:36:29 +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>();
|
var envData = new Dictionary<string, string>();
|
||||||
|
|
||||||
// Copy over parent environment
|
// Copy over parent environment
|
||||||
foreach (var env in ExecutionContext.EnvironmentVariables)
|
foreach (var env in Environment)
|
||||||
{
|
{
|
||||||
envData[env.Key] = env.Value;
|
envData[env.Key] = env.Value;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -160,8 +160,7 @@ namespace GitHub.DistributedTask.Pipelines.ObjectTemplating
|
|||||||
}
|
}
|
||||||
|
|
||||||
public List<ActionStep> LoadCompositeSteps(
|
public List<ActionStep> LoadCompositeSteps(
|
||||||
TemplateToken token
|
TemplateToken token)
|
||||||
)
|
|
||||||
{
|
{
|
||||||
var result = default(List<ActionStep>);
|
var result = default(List<ActionStep>);
|
||||||
if (token != null && token.Type != TokenType.Null)
|
if (token != null && token.Type != TokenType.Null)
|
||||||
|
|||||||
Reference in New Issue
Block a user