diff --git a/__tests__/context.test.ts b/__tests__/context.test.ts index c82605a..f3ab6b4 100644 --- a/__tests__/context.test.ts +++ b/__tests__/context.test.ts @@ -188,7 +188,7 @@ describe('setOutput', () => { }); }); -// See: https://github.com/actions/toolkit/blob/master/packages/core/src/core.ts#L67 +// See: https://github.com/actions/toolkit/blob/a1b068ec31a042ff1e10a522d8fdf0b8869d53ca/packages/core/src/core.ts#L89 function getInputName(name: string): string { return `INPUT_${name.replace(/ /g, '_').toUpperCase()}`; } diff --git a/dist/index.js b/dist/index.js index 10dbfb0..030631e 100644 --- a/dist/index.js +++ b/dist/index.js @@ -533,7 +533,6 @@ function run() { return; } const bxVersion = yield buildx.getVersion(); - core.debug(`buildx version: ${bxVersion}`); const inputs = yield context.getInputs(); const args = yield context.getArgs(inputs, bxVersion); core.startGroup(`Bake definition`); @@ -5797,10 +5796,10 @@ function getInputs() { builder: core.getInput('builder'), files: getInputList('files'), targets: getInputList('targets'), - noCache: /true/i.test(core.getInput('no-cache')), - pull: /true/i.test(core.getInput('pull')), - load: /true/i.test(core.getInput('load')), - push: /true/i.test(core.getInput('push')), + noCache: core.getBooleanInput('no-cache'), + pull: core.getBooleanInput('pull'), + load: core.getBooleanInput('load'), + push: core.getBooleanInput('push'), set: getInputList('set', true) }; }); diff --git a/src/context.ts b/src/context.ts index a0f65c8..8124415 100644 --- a/src/context.ts +++ b/src/context.ts @@ -19,10 +19,10 @@ export async function getInputs(): Promise { builder: core.getInput('builder'), files: getInputList('files'), targets: getInputList('targets'), - noCache: /true/i.test(core.getInput('no-cache')), - pull: /true/i.test(core.getInput('pull')), - load: /true/i.test(core.getInput('load')), - push: /true/i.test(core.getInput('push')), + noCache: core.getBooleanInput('no-cache'), + pull: core.getBooleanInput('pull'), + load: core.getBooleanInput('load'), + push: core.getBooleanInput('push'), set: getInputList('set', true) }; } diff --git a/src/main.ts b/src/main.ts index 8b2bfbc..2bac793 100644 --- a/src/main.ts +++ b/src/main.ts @@ -17,8 +17,6 @@ async function run(): Promise { } const bxVersion = await buildx.getVersion(); - core.debug(`buildx version: ${bxVersion}`); - const inputs: context.Inputs = await context.getInputs(); const args: string[] = await context.getArgs(inputs, bxVersion);