0.1.0 • Published 1 year ago

@actions-kit/envi v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Actions Kit - Envi

npm version build status

An environment management library of Actions Kit, an additional toolkit for developing GitHub Actions.

Installation

npm install @actions-kit/envi

Usage

Get Action Inputs

Use getStringInput(key) to get a string from an action input.

const envi = require('@actions-kit/envi');

const stringInput = envi.getStringInput("string-input");

Or use getMultilineInput(key), getBooleanInput(key) or getNumberInput(key) to respectively get a multiline string, boolean or number from an action input.

const multilineInput = envi.getMultilineInput("multiline-input");
const booleanInput = envi.getBooleanInput("boolean-input");
const numberInput = envi.getNumberInput("number-input");

License

This project is licensed under the terms of the MIT License.

Copyright © 2023 Alfi Maulana

0.1.0

1 year ago