docs: Document action, inputs and outputs.

This commit is contained in:
Bret Comnes
2020-02-17 21:12:06 -07:00
parent 6b86fa30b4
commit da5f527254
4 changed files with 41 additions and 6 deletions

View File

@@ -6,8 +6,8 @@ const ms = require('ms')
const assert = require('nanoassert')
async function doDeploy () {
const token = core.getInput('apiToken')
const distDir = path.join(process.cwd(), core.getInput('distDir'))
const token = core.getInput('api_token')
const distDir = path.join(process.cwd(), core.getInput('dist_dir'))
const cleanup = JSON.parse(core.getInput('cleanup'))
assert(typeof cleanup === 'boolean', 'Cleanup input must be a boolean "true" or "false"')