Use core.getBooleanInput

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2021-06-22 17:25:52 +02:00
parent 93a9859764
commit 9199c83f6e
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
3 changed files with 66 additions and 18 deletions

View file

@ -74,13 +74,13 @@ export async function getInputs(defaultContext: string): Promise<Inputs> {
context: core.getInput('context') || defaultContext,
file: core.getInput('file'),
labels: await getInputList('labels', true),
load: /true/i.test(core.getInput('load')),
load: core.getBooleanInput('load'),
network: core.getInput('network'),
noCache: /true/i.test(core.getInput('no-cache')),
noCache: core.getBooleanInput('no-cache'),
outputs: await getInputList('outputs', true),
platforms: await getInputList('platforms'),
pull: /true/i.test(core.getInput('pull')),
push: /true/i.test(core.getInput('push')),
pull: core.getBooleanInput('pull'),
push: core.getBooleanInput('push'),
secrets: await getInputList('secrets', true),
secretFiles: await getInputList('secret-files', true),
ssh: await getInputList('ssh'),