From e4f23dde3e576120aacaa43cefeb2bc233d6a67e Mon Sep 17 00:00:00 2001 From: Bret Comnes Date: Tue, 18 Feb 2020 11:15:19 -0700 Subject: [PATCH] bug: fix input parsing regression --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 54752ad..1fd2a62 100644 --- a/index.js +++ b/index.js @@ -9,7 +9,7 @@ const fsp = require('fs').promises async function doDeploy () { const token = core.getInput('api_token') const distDir = path.join(process.cwd(), core.getInput('dist_dir')) - const cleanup = core.getInput('cleanup') + const cleanup = JSON.parse(core.getInput('cleanup')) assert(typeof cleanup === 'boolean', 'Cleanup input must be a boolean "true" or "false"') const stat = await fsp.stat()