mirror of
https://github.com/pnpm/action-setup.git
synced 2026-07-10 05:59:23 +00:00
Create some files
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user