Complete basic
This commit is contained in:
parent
21f3fd8b57
commit
7d62586afe
3 changed files with 26 additions and 11 deletions
|
|
@ -1,14 +1,11 @@
|
|||
import { setFailed } from '@actions/core'
|
||||
import getInputs from '../inputs'
|
||||
import { Inputs } from '../inputs'
|
||||
import runSelfInstaller from './run'
|
||||
|
||||
export { runSelfInstaller }
|
||||
|
||||
export async function install() {
|
||||
const { error, status } = await runSelfInstaller(getInputs())
|
||||
|
||||
if (error) return setFailed(error)
|
||||
|
||||
export async function install(inputs: Inputs) {
|
||||
const status = await runSelfInstaller(inputs)
|
||||
if (status) {
|
||||
return setFailed(`Something does wrong, self-installer exits with code ${status}`)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue