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()