From dffa64995b5e8517a34addeea5ef9e3a79e073bb Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Wed, 23 Jun 2021 15:43:25 +0200 Subject: [PATCH] Use `core.getBooleanInput` Signed-off-by: CrazyMax --- dist/index.js | 4 ++-- src/context.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index a5b932e..39522db 100644 --- a/dist/index.js +++ b/dist/index.js @@ -8433,8 +8433,8 @@ function getInputs() { driverOpts: yield getInputList('driver-opts', true), buildkitdFlags: core.getInput('buildkitd-flags') || '--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host', - install: /true/i.test(core.getInput('install')), - use: /true/i.test(core.getInput('use')), + install: core.getBooleanInput('install'), + use: core.getBooleanInput('use'), endpoint: core.getInput('endpoint'), config: core.getInput('config') }; diff --git a/src/context.ts b/src/context.ts index 51f4f48..234ccd4 100644 --- a/src/context.ts +++ b/src/context.ts @@ -24,8 +24,8 @@ export async function getInputs(): Promise { buildkitdFlags: core.getInput('buildkitd-flags') || '--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host', - install: /true/i.test(core.getInput('install')), - use: /true/i.test(core.getInput('use')), + install: core.getBooleanInput('install'), + use: core.getBooleanInput('use'), endpoint: core.getInput('endpoint'), config: core.getInput('config') };