18 lines
413 B
TypeScript
Raw Normal View History

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