Fix PrependPath format to be array instead of a concatenated string (#1948)

* Fix prependPath format
This commit is contained in:
Ferenc Hammerl
2022-06-22 15:11:17 +02:00
committed by GitHub
parent 9499f477a2
commit 416771d4b1
2 changed files with 2 additions and 2 deletions

View File

@@ -101,7 +101,7 @@ namespace GitHub.Runner.Worker.Container.ContainerHooks
EntryPointArgs = entryPointArgs.Split(' ').Select(arg => arg.Trim()), EntryPointArgs = entryPointArgs.Split(' ').Select(arg => arg.Trim()),
EntryPoint = entryPoint, EntryPoint = entryPoint,
EnvironmentVariables = environmentVariables, EnvironmentVariables = environmentVariables,
PrependPath = prependPath, PrependPath = context.Global.PrependPath.Reverse<string>(),
WorkingDirectory = workingDirectory, WorkingDirectory = workingDirectory,
}, },
State = context.Global.ContainerHookState State = context.Global.ContainerHookState

View File

@@ -44,7 +44,7 @@ namespace GitHub.Runner.Worker.Container.ContainerHooks
public IEnumerable<string> EntryPointArgs { get; set; } public IEnumerable<string> EntryPointArgs { get; set; }
public string EntryPoint { get; set; } public string EntryPoint { get; set; }
public IDictionary<string, string> EnvironmentVariables { get; set; } public IDictionary<string, string> EnvironmentVariables { get; set; }
public string PrependPath { get; set; } public IEnumerable<string> PrependPath { get; set; }
public string WorkingDirectory { get; set; } public string WorkingDirectory { get; set; }
public bool IsRequireAlpineInResponse() => false; public bool IsRequireAlpineInResponse() => false;
} }