mirror of
https://github.com/bcomnes/deploy-to-neocities.git
synced 2026-01-16 22:56:28 +00:00
bug: fix internal stat check bug
This commit is contained in:
parent
41eee650e2
commit
24cfb5bc53
2
index.js
2
index.js
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user