From 19246fac798151a3ab80666412f72394c0615c32 Mon Sep 17 00:00:00 2001 From: Bret Comnes Date: Wed, 12 Feb 2020 21:14:59 -0700 Subject: [PATCH] Fix boolean parsing --- action.yml | 4 ++-- index.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/action.yml b/action.yml index 99411ed..0156dab 100644 --- a/action.yml +++ b/action.yml @@ -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 diff --git a/index.js b/index.js index 3ddf5a4..063602e 100644 --- a/index.js +++ b/index.js @@ -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)