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
No known key found for this signature in database
GPG Key ID: 3705F4634DC3A1AC

View File

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