15 lines
373 B
TypeScript
Raw Normal View History

2020-05-08 11:29:39 +07:00
import { setFailed } from '@actions/core'
2020-05-08 13:06:16 +07:00
import { Inputs } from '../inputs'
2020-05-08 11:29:39 +07:00
import runSelfInstaller from './run'
export { runSelfInstaller }
2020-05-08 13:06:16 +07:00
export async function install(inputs: Inputs) {
const status = await runSelfInstaller(inputs)
2020-05-08 11:29:39 +07:00
if (status) {
return setFailed(`Something does wrong, self-installer exits with code ${status}`)
}
}
export default install