Use core.getBooleanInput

This commit is contained in:
CrazyMax
2021-05-26 15:22:18 +02:00
parent e0c37242bd
commit 41a29e21ad
6 changed files with 11 additions and 12 deletions
+4 -4
View File
@@ -19,10 +19,10 @@ export async function getInputs(): Promise<Inputs> {
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)
};
}
-2
View File
@@ -17,8 +17,6 @@ async function run(): Promise<void> {
}
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);