mirror of
https://github.com/bcomnes/deploy-to-neocities.git
synced 2026-01-21 00:46:29 +00:00
bug: fix input parsing regression
This commit is contained in:
2
index.js
2
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()
|
||||
|
||||
Reference in New Issue
Block a user