mirror of
https://github.com/actions/runner.git
synced 2026-01-05 01:30:40 +08:00
.
This commit is contained in:
@@ -64,14 +64,14 @@ async function run(): Promise<void> {
|
|||||||
core.debug(JSON.stringify(containerId))
|
core.debug(JSON.stringify(containerId))
|
||||||
|
|
||||||
// podman start {containerId}
|
// podman start {containerId}
|
||||||
await exec.exec('podman', ['start', containerId.stdout])
|
await exec.exec('podman', ['start', containerId.stdout.trim()])
|
||||||
|
|
||||||
// get PATH inside the container
|
// get PATH inside the container
|
||||||
|
|
||||||
// output containerId for ${{job.container.id}}
|
// output containerId for ${{job.container.id}}
|
||||||
|
|
||||||
const creationOutput = {
|
const creationOutput = {
|
||||||
JobContainerId: containerId.stdout,
|
JobContainerId: containerId.stdout.trim(),
|
||||||
Network: networkName
|
Network: networkName
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1100,11 +1100,11 @@ function run() {
|
|||||||
]);
|
]);
|
||||||
core.debug(JSON.stringify(containerId));
|
core.debug(JSON.stringify(containerId));
|
||||||
// podman start {containerId}
|
// podman start {containerId}
|
||||||
yield exec.exec('podman', ['start', containerId.stdout]);
|
yield exec.exec('podman', ['start', containerId.stdout.trim()]);
|
||||||
// get PATH inside the container
|
// get PATH inside the container
|
||||||
// output containerId for ${{job.container.id}}
|
// output containerId for ${{job.container.id}}
|
||||||
const creationOutput = {
|
const creationOutput = {
|
||||||
JobContainerId: containerId.stdout,
|
JobContainerId: containerId.stdout.trim(),
|
||||||
Network: networkName
|
Network: networkName
|
||||||
};
|
};
|
||||||
const output = JSON.stringify({ CreationOutput: creationOutput });
|
const output = JSON.stringify({ CreationOutput: creationOutput });
|
||||||
|
|||||||
Reference in New Issue
Block a user