mirror of
https://github.com/actions/runner.git
synced 2026-01-06 10:07:27 +08:00
.
This commit is contained in:
@@ -1111,10 +1111,18 @@ function run() {
|
||||
core.debug(output);
|
||||
process.stderr.write(output);
|
||||
}
|
||||
// else if (command === 'Remove') {
|
||||
// } else if (command === 'Exec') {
|
||||
else if (command === 'Remove') {
|
||||
const removeInput = inputJson.removeInput;
|
||||
core.debug(JSON.stringify(removeInput));
|
||||
const jobContainerId = removeInput.jobContainerId;
|
||||
const network = removeInput.network;
|
||||
yield exec.exec('podman', ['rm', '-f', jobContainerId]);
|
||||
yield exec.exec('podman', ['network', 'rm', '-f', network]);
|
||||
}
|
||||
// else if (command === 'Exec') {
|
||||
// }
|
||||
yield exec.exec('podman', ['network', 'ls']);
|
||||
yield exec.exec('podman', ['network', 'ps', '-a']);
|
||||
});
|
||||
}
|
||||
run();
|
||||
|
||||
Reference in New Issue
Block a user