mirror of
https://github.com/actions/runner.git
synced 2025-12-10 20:36:49 +00:00
.
This commit is contained in:
@@ -71,6 +71,9 @@ async function run(): Promise<void> {
|
||||
|
||||
// get PATH inside the container
|
||||
|
||||
const waitArgs = ['wait', '--for=condition=Ready', 'pod/job-container']
|
||||
await exec.exec('kubectl', waitArgs)
|
||||
|
||||
// output containerId for ${{job.container.id}}
|
||||
|
||||
// copy over node.js
|
||||
|
||||
@@ -3042,6 +3042,8 @@ function run() {
|
||||
// ])
|
||||
yield exec.exec('kubectl', runArgs);
|
||||
// get PATH inside the container
|
||||
const waitArgs = ['wait', '--for=condition=Ready', 'pod/job-container'];
|
||||
yield exec.exec('kubectl', waitArgs);
|
||||
// output containerId for ${{job.container.id}}
|
||||
// copy over node.js
|
||||
const cpNodeArgs = [
|
||||
|
||||
@@ -62,6 +62,9 @@ namespace GitHub.Runner.Worker
|
||||
|
||||
[DataMember]
|
||||
public List<string> EnvironmentKeys { get; set; }
|
||||
|
||||
[DataMember]
|
||||
public Dictionary<string, string> EnvironmentVariables { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user