action-setup/src/index.ts

15 lines
327 B
TypeScript
Raw Normal View History

2020-05-08 14:47:46 +08:00
import { setFailed } from '@actions/core'
2020-05-08 14:06:16 +08:00
import getInputs from './inputs'
2020-05-08 14:12:01 +08:00
import setOutputs from './outputs'
2020-05-08 14:06:16 +08:00
import install from './install'
const inputs = getInputs()
install(inputs).then(() => {
console.log('Installation Completed!')
2020-05-08 14:12:01 +08:00
setOutputs(inputs)
2020-05-08 14:06:16 +08:00
}).catch(error => {
console.error(error)
setFailed(error)
})