From 06e20d6efaabb4b5fad11bffa2d2dd1fc7c94245 Mon Sep 17 00:00:00 2001 From: Bret Comnes Date: Tue, 18 Feb 2020 11:22:45 -0700 Subject: [PATCH] chore: remove debug statements --- .github/workflows/neocities.yml | 2 +- index.js | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/neocities.yml b/.github/workflows/neocities.yml index 62639a2..5caee43 100644 --- a/.github/workflows/neocities.yml +++ b/.github/workflows/neocities.yml @@ -24,7 +24,7 @@ jobs: npm run build # When the dist_dir is ready, deploy it to neocities - name: Deploy to neocities - uses: bcomnes/deploy-to-neocities@master + uses: bcomnes/deploy-to-neocities@master # dont use master in production with: api_token: ${{ secrets.NEOCITIES_API_TOKEN }} cleanup: false diff --git a/index.js b/index.js index 4d0b151..1fd2a62 100644 --- a/index.js +++ b/index.js @@ -10,10 +10,7 @@ async function doDeploy () { const token = core.getInput('api_token') const distDir = path.join(process.cwd(), core.getInput('dist_dir')) 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"') const stat = await fsp.stat() assert(stat.isDirectory(), 'dist_dir must be a directory that exists')