diff --git a/.github/workflows/neocities.yml b/.github/workflows/neocities.yml index f40c284..62639a2 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@v1 + uses: bcomnes/deploy-to-neocities@master with: api_token: ${{ secrets.NEOCITIES_API_TOKEN }} cleanup: false diff --git a/index.js b/index.js index 1fd2a62..4d0b151 100644 --- a/index.js +++ b/index.js @@ -10,7 +10,10 @@ 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')