Fix boolean parsing

This commit is contained in:
Bret Comnes 2020-02-12 21:14:59 -07:00
parent dda8316219
commit 19246fac79
No known key found for this signature in database
GPG Key ID: 3705F4634DC3A1AC
2 changed files with 5 additions and 5 deletions

View File

@ -4,10 +4,10 @@ branding:
icon: cat icon: cat
color: yellow color: yellow
inputs: inputs:
api-token: # api token for site to deploy to apiToken: # api token for site to deploy to
description: 'Neocities API token for site to deploy to' description: 'Neocities API token for site to deploy to'
required: true required: true
dist-dir: distDir:
description: 'Local folder to deploy to neocities' description: 'Local folder to deploy to neocities'
default: 'public' default: 'public'
required: true required: true

View File

@ -6,9 +6,9 @@ const prettyTime = require('pretty-time')
const prettyBytes = require('pretty-bytes') const prettyBytes = require('pretty-bytes')
async function doDeploy () { async function doDeploy () {
const token = core.getInput('api-token') const token = core.getInput('apiToken')
const distDir = path.join(process.cwd(), core.getInput('dist-dir')) const distDir = path.join(process.cwd(), core.getInput('distDir'))
const cleanup = core.getInput('cleanup') const cleanup = JSON.parse(core.getInput('cleanup'))
console.log(typeof cleanup) console.log(typeof cleanup)
const client = new Neocities(token) const client = new Neocities(token)