Skip to content

Commit

Permalink
Fix boolean parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Feb 13, 2020
1 parent dda8316 commit 19246fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ branding:
icon: cat
color: yellow
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'
required: true
dist-dir:
distDir:
description: 'Local folder to deploy to neocities'
default: 'public'
required: true
Expand Down
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ const prettyTime = require('pretty-time')
const prettyBytes = require('pretty-bytes')

async function doDeploy () {
const token = core.getInput('api-token')
const distDir = path.join(process.cwd(), core.getInput('dist-dir'))
const cleanup = core.getInput('cleanup')
const token = core.getInput('apiToken')
const distDir = path.join(process.cwd(), core.getInput('distDir'))
const cleanup = JSON.parse(core.getInput('cleanup'))
console.log(typeof cleanup)

const client = new Neocities(token)
Expand Down

0 comments on commit 19246fa

Please sign in to comment.