Created
August 13, 2020 21:13
-
-
Save g1stavo/b03c1636d20079455db3470181638688 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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