action-setup/src/index.ts
2020-05-08 14:24:25 +07:00

18 lines
376 B
TypeScript

import { setFailed } from '@actions/core'
import getInputs from './inputs'
import setOutputs from './outputs'
import install from './install'
async function main() {
const inputs = getInputs()
await install(inputs).then(() => {
console.log('Installation Completed!')
setOutputs(inputs)
})
}
main().catch(error => {
console.error(error)
setFailed(error)
})