mirror of
https://github.com/bcomnes/deploy-to-neocities.git
synced 2026-03-24 15:51:36 +00:00
bug: fix internal stat check bug
This commit is contained in:
2
index.js
2
index.js
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user