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

9
dist/index.js generated vendored
View File

@@ -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)
};
});