mirror of
https://code.forgejo.org/pnpm/action-setup.git
synced 2025-06-13 07:31:14 +00:00
Create some files
This commit is contained in:
parent
a7354264cc
commit
cd1794a16e
6 changed files with 65 additions and 0 deletions
src/inputs
21
src/inputs/index.ts
Normal file
21
src/inputs/index.ts
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue