mirror of
https://github.com/actions/runner.git
synced 2025-12-10 12:36:23 +00:00
.
This commit is contained in:
@@ -76,7 +76,7 @@ async function run(): Promise<void> {
|
||||
// copy over node.js
|
||||
const cpNodeArgs = [
|
||||
'cp',
|
||||
'/actions-runner/externals/node16/bin',
|
||||
'/actions-runner/externals/node12/bin',
|
||||
'job-container:/__runner_util/'
|
||||
]
|
||||
await exec.exec('kubectl', cpNodeArgs)
|
||||
@@ -105,7 +105,7 @@ async function run(): Promise<void> {
|
||||
core.debug(JSON.stringify(removeInput))
|
||||
const jobContainerId = removeInput.jobContainerId
|
||||
|
||||
await exec.exec('kubectl', ['delete', 'pod', jobContainerId])
|
||||
await exec.exec('kubectl', ['delete', 'pod', jobContainerId, '--force'])
|
||||
// await exec.exec('podman', ['network', 'rm', '-f', network])
|
||||
} else if (command === 'Exec') {
|
||||
const execInput = inputJson.execInput
|
||||
|
||||
@@ -3046,7 +3046,7 @@ function run() {
|
||||
// copy over node.js
|
||||
const cpNodeArgs = [
|
||||
'cp',
|
||||
'/actions-runner/externals/node16/bin',
|
||||
'/actions-runner/externals/node12/bin',
|
||||
'job-container:/__runner_util/'
|
||||
];
|
||||
yield exec.exec('kubectl', cpNodeArgs);
|
||||
@@ -3059,7 +3059,7 @@ function run() {
|
||||
yield exec.exec('kubectl', cpKubeInnerArgs);
|
||||
const creationOutput = {
|
||||
JobContainerId: 'job-container',
|
||||
Network: "job-container"
|
||||
Network: 'job-container'
|
||||
};
|
||||
const output = JSON.stringify({ CreationOutput: creationOutput });
|
||||
core.debug(output);
|
||||
@@ -3069,7 +3069,7 @@ function run() {
|
||||
const removeInput = inputJson.removeInput;
|
||||
core.debug(JSON.stringify(removeInput));
|
||||
const jobContainerId = removeInput.jobContainerId;
|
||||
yield exec.exec('kubectl', ['delete', 'pod', jobContainerId]);
|
||||
yield exec.exec('kubectl', ['delete', 'pod', jobContainerId, '--force']);
|
||||
// await exec.exec('podman', ['network', 'rm', '-f', network])
|
||||
}
|
||||
else if (command === 'Exec') {
|
||||
|
||||
Reference in New Issue
Block a user