bug: fix internal stat check bug

This commit is contained in:
Bret Comnes
2020-02-18 11:26:19 -07:00
parent 41eee650e2
commit 24cfb5bc53

View File

@@ -12,7 +12,7 @@ async function doDeploy () {
const cleanup = JSON.parse(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(distDir)
assert(stat.isDirectory(), 'dist_dir must be a directory that exists') assert(stat.isDirectory(), 'dist_dir must be a directory that exists')
const client = new Neocities(token) const client = new Neocities(token)