Complete source code

This commit is contained in:
khai96_ 2020-05-08 13:12:01 +07:00
parent 7d62586afe
commit 696222a6f3
2 changed files with 10 additions and 0 deletions

View File

@ -1,11 +1,13 @@
import { setFailed } from '@actions/core'
import getInputs from './inputs'
import setOutputs from './outputs'
import install from './install'
const inputs = getInputs()
install(inputs).then(() => {
console.log('Installation Completed!')
setOutputs(inputs)
}).catch(error => {
console.error(error)
setFailed(error)

8
src/outputs/index.ts Normal file
View File

@ -0,0 +1,8 @@
import { addPath } from '@actions/core'
import { Inputs } from '../inputs'
export function setOutputs(inputs: Inputs) {
addPath(inputs.binDest)
}
export default setOutputs