This commit is contained in:
TingluoHuang
2021-10-28 19:40:25 -04:00
parent a45c0278e6
commit 3ce763338d
4 changed files with 10 additions and 1 deletions
@@ -62,6 +62,9 @@ namespace GitHub.Runner.Worker
[DataMember]
public List<string> EnvironmentKeys { get; set; }
[DataMember]
public Dictionary<string, string> EnvironmentVariables { get; set; }
}
+2 -1
View File
@@ -192,7 +192,8 @@ namespace GitHub.Runner.Worker.Handlers
WorkingDirectory = workingDirectory,
FileName = fileName,
Arguments = arguments,
EnvironmentKeys = environment.Keys.ToList()
EnvironmentKeys = environment.Keys.ToList(),
EnvironmentVariables = environment.ToDictionary(x => x.Key, y => y.Value)
}
};