Create some files

This commit is contained in:
khai96_ 2020-05-08 11:29:39 +07:00
parent a7354264cc
commit cd1794a16e
6 changed files with 65 additions and 0 deletions
src/inputs

21
src/inputs/index.ts Normal file
View file

@ -0,0 +1,21 @@
import { getInput, InputOptions } from '@actions/core'
export interface Inputs {
readonly version: string
readonly dest: string
readonly binDest: string
readonly registry: string
}
const options: InputOptions = {
required: true,
}
export const getInputs = (): Inputs => ({
version: getInput('version', options),
dest: getInput('dest', options),
binDest: getInput('bin_dest', options),
registry: getInput('registry', options),
})
export default getInputs