This commit is contained in:
TingluoHuang
2021-10-14 14:59:34 -04:00
parent f6053b616c
commit 43f983486e
2 changed files with 4 additions and 4 deletions

View File

@@ -64,14 +64,14 @@ async function run(): Promise<void> {
core.debug(JSON.stringify(containerId))
// podman start {containerId}
await exec.exec('podman', ['start', containerId.stdout])
await exec.exec('podman', ['start', containerId.stdout.trim()])
// get PATH inside the container
// output containerId for ${{job.container.id}}
const creationOutput = {
JobContainerId: containerId.stdout,
JobContainerId: containerId.stdout.trim(),
Network: networkName
}

View File

@@ -1100,11 +1100,11 @@ function run() {
]);
core.debug(JSON.stringify(containerId));
// podman start {containerId}
yield exec.exec('podman', ['start', containerId.stdout]);
yield exec.exec('podman', ['start', containerId.stdout.trim()]);
// get PATH inside the container
// output containerId for ${{job.container.id}}
const creationOutput = {
JobContainerId: containerId.stdout,
JobContainerId: containerId.stdout.trim(),
Network: networkName
};
const output = JSON.stringify({ CreationOutput: creationOutput });