mirror of
https://github.com/actions/runner.git
synced 2025-12-14 13:43:33 +00:00
.
This commit is contained in:
@@ -110,9 +110,9 @@ async function run(): Promise<void> {
|
|||||||
} else if (command === 'Remove') {
|
} else if (command === 'Remove') {
|
||||||
const removeInput = inputJson.removeInput
|
const removeInput = inputJson.removeInput
|
||||||
core.debug(JSON.stringify(removeInput))
|
core.debug(JSON.stringify(removeInput))
|
||||||
const jobContainerId = removeInput.jobContainerId
|
// const jobContainerId = removeInput.jobContainerId
|
||||||
|
|
||||||
await exec.exec('kubectl', ['delete', 'pod', jobContainerId, '--force'])
|
// await exec.exec('kubectl', ['delete', 'pod', jobContainerId, '--force'])
|
||||||
// await exec.exec('podman', ['network', 'rm', '-f', network])
|
// await exec.exec('podman', ['network', 'rm', '-f', network])
|
||||||
} else if (command === 'Exec') {
|
} else if (command === 'Exec') {
|
||||||
const execInput = inputJson.execInput
|
const execInput = inputJson.execInput
|
||||||
|
|||||||
@@ -3060,11 +3060,7 @@ function run() {
|
|||||||
];
|
];
|
||||||
yield exec.exec('kubectl', cpKubeInnerArgs);
|
yield exec.exec('kubectl', cpKubeInnerArgs);
|
||||||
// copy over _work
|
// copy over _work
|
||||||
const cpWorkArgs = [
|
const cpWorkArgs = ['cp', '/actions-runner/_work', 'job-container:/__w/'];
|
||||||
'cp',
|
|
||||||
'/actions-runner/_work',
|
|
||||||
'job-container:/__w/'
|
|
||||||
];
|
|
||||||
yield exec.exec('kubectl', cpWorkArgs);
|
yield exec.exec('kubectl', cpWorkArgs);
|
||||||
const creationOutput = {
|
const creationOutput = {
|
||||||
JobContainerId: 'job-container',
|
JobContainerId: 'job-container',
|
||||||
@@ -3077,8 +3073,8 @@ function run() {
|
|||||||
else if (command === 'Remove') {
|
else if (command === 'Remove') {
|
||||||
const removeInput = inputJson.removeInput;
|
const removeInput = inputJson.removeInput;
|
||||||
core.debug(JSON.stringify(removeInput));
|
core.debug(JSON.stringify(removeInput));
|
||||||
const jobContainerId = removeInput.jobContainerId;
|
// const jobContainerId = removeInput.jobContainerId
|
||||||
yield exec.exec('kubectl', ['delete', 'pod', jobContainerId, '--force']);
|
// await exec.exec('kubectl', ['delete', 'pod', jobContainerId, '--force'])
|
||||||
// await exec.exec('podman', ['network', 'rm', '-f', network])
|
// await exec.exec('podman', ['network', 'rm', '-f', network])
|
||||||
}
|
}
|
||||||
else if (command === 'Exec') {
|
else if (command === 'Exec') {
|
||||||
|
|||||||
Reference in New Issue
Block a user