mirror of
https://github.com/docker/bake-action.git
synced 2026-05-12 08:45:36 +02:00
Use core.getBooleanInput
This commit is contained in:
+4
-4
@@ -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)
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user