chore: debugging statements

This commit is contained in:
Bret Comnes 2020-02-18 11:21:35 -07:00
parent 815ca758a7
commit 5ed114bebe
No known key found for this signature in database
GPG Key ID: 3705F4634DC3A1AC
2 changed files with 5 additions and 2 deletions

View File

@ -24,7 +24,7 @@ jobs:
npm run build npm run build
# When the dist_dir is ready, deploy it to neocities # When the dist_dir is ready, deploy it to neocities
- name: Deploy to neocities - name: Deploy to neocities
uses: bcomnes/deploy-to-neocities@v1 uses: bcomnes/deploy-to-neocities@master
with: with:
api_token: ${{ secrets.NEOCITIES_API_TOKEN }} api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
cleanup: false cleanup: false

View File

@ -10,7 +10,10 @@ async function doDeploy () {
const token = core.getInput('api_token') const token = core.getInput('api_token')
const distDir = path.join(process.cwd(), core.getInput('dist_dir')) const distDir = path.join(process.cwd(), core.getInput('dist_dir'))
const cleanup = JSON.parse(core.getInput('cleanup')) const cleanup = JSON.parse(core.getInput('cleanup'))
console.log(cleanup)
console.log(typeof cleanup)
console.log(core.getInput('cleanup'))
console.log(typeof 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()
assert(stat.isDirectory(), 'dist_dir must be a directory that exists') assert(stat.isDirectory(), 'dist_dir must be a directory that exists')