Skip to content

Commit

Permalink
Compute args order
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
  • Loading branch information
CrazyMax committed Aug 16, 2020
1 parent 444d7e9 commit 1ca381e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,14 @@ async function run(): Promise<void> {
}

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);
Expand Down

0 comments on commit 1ca381e

Please sign in to comment.