From 1ca381eec11b36ea7c04b65785eb737f337d268d Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Sun, 16 Aug 2020 22:41:18 +0200 Subject: [PATCH] Compute args order Signed-off-by: CrazyMax --- dist/index.js | 2 +- src/main.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 7b20e8a..5108af2 100644 --- a/dist/index.js +++ b/dist/index.js @@ -5660,13 +5660,13 @@ function run() { return; } let inputs = yield context_1.getInputs(); - const args = yield context_1.getArgs(inputs); if (inputs.builder) { core.info(`📌 Using builder instance ${inputs.builder}`); yield buildx.use(inputs.builder); } inputs = yield github.restoreCache(inputs); core.info(`🏃 Starting build...`); + const args = yield context_1.getArgs(inputs); yield exec.exec('docker', args); } catch (error) { diff --git a/src/main.ts b/src/main.ts index 9cb1815..8d36b04 100644 --- a/src/main.ts +++ b/src/main.ts @@ -19,16 +19,14 @@ async function run(): Promise { } let inputs: Inputs = await getInputs(); - const args: string[] = await getArgs(inputs); - if (inputs.builder) { core.info(`📌 Using builder instance ${inputs.builder}`); await buildx.use(inputs.builder); } - inputs = await github.restoreCache(inputs); core.info(`🏃 Starting build...`); + const args: string[] = await getArgs(inputs); await exec.exec('docker', args); } catch (error) { core.setFailed(error.message);