Create some files
This commit is contained in:
parent
a7354264cc
commit
cd1794a16e
6 changed files with 65 additions and 0 deletions
17
src/install/index.ts
Normal file
17
src/install/index.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import { setFailed } from '@actions/core'
|
||||
import { getInputs } from '../inputs'
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue