bug: fix input parsing regression

This commit is contained in:
Bret Comnes 2020-02-18 11:15:19 -07:00
parent d6623dd305
commit e4f23dde3e
No known key found for this signature in database
GPG Key ID: 3705F4634DC3A1AC

View File

@ -9,7 +9,7 @@ const fsp = require('fs').promises
async function doDeploy () { async function doDeploy () {
const token = core.getInput('api_token') const token = core.getInput('api_token')
const distDir = path.join(process.cwd(), core.getInput('dist_dir')) 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"') assert(typeof cleanup === 'boolean', 'Cleanup input must be a boolean "true" or "false"')
const stat = await fsp.stat() const stat = await fsp.stat()