From e87c45cd3eb9a663660f730545c7ba1700d59391 Mon Sep 17 00:00:00 2001 From: Hidetake Iwata Date: Fri, 10 Feb 2023 16:00:18 +0900 Subject: [PATCH] Do not group build logs (#375) --- src/run.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/run.ts b/src/run.ts index 39d7d39..d9048ab 100644 --- a/src/run.ts +++ b/src/run.ts @@ -27,12 +27,14 @@ type Outputs = { } export const run = async (inputs: Inputs): Promise => { - await withTime('Pulled', () => exec.exec('docker', ['pull', '-q', inputs.executor])) + await core.group(`Pulling ${inputs.executor}`, () => + withTime('Pulled', () => exec.exec('docker', ['pull', '-q', inputs.executor])) + ) const runnerTempDir = process.env.RUNNER_TEMP || os.tmpdir() const outputsDir = await fs.mkdtemp(path.join(runnerTempDir, 'kaniko-action-')) const args = generateArgs(inputs, outputsDir) - await withTime('Built', () => core.group('Build', () => exec.exec('docker', args))) + await withTime('Built', () => exec.exec('docker', args)) const digest = await readContent(`${outputsDir}/digest`) core.info(digest)