Skip to content

Instantly share code, notes, and snippets.

@g1stavo
Created August 13, 2020 21:13
Show Gist options
  • Save g1stavo/b03c1636d20079455db3470181638688 to your computer and use it in GitHub Desktop.
Save g1stavo/b03c1636d20079455db3470181638688 to your computer and use it in GitHub Desktop.
const { getInput, setFailed } = require('@actions/core')
const { handle } = require('./github')
// Run Action.
const run = async () => {
try {
const token = getInput('token', { required: true })
await handle(token)
} catch (error) {
setFailed(error.message)
}
}
run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment