mirror of
https://github.com/actions/toolkit.git
synced 2026-08-16 00:00:21 +02:00
Sarpik/get input list support (#829)
* feat(core): Create `getInputList` utility Signed-off-by: Kipras Melnikovas <[email protected]> * chore(core): Document usage of '\n' instead of [] @ `getInputList` Signed-off-by: Kipras Melnikovas <[email protected]> * test(core): Create a very simple test for `getInputList` Signed-off-by: Kipras Melnikovas <[email protected]> * run linter * update commands/readme Co-authored-by: Kipras Melnikovas <[email protected]>
This commit is contained in:
co-authored by
Kipras Melnikovas
parent
dc4b4dab1d
commit
bb2f39337d
@@ -23,6 +23,7 @@ Outputs can be set with `setOutput` which makes them available to be mapped into
|
||||
```js
|
||||
const myInput = core.getInput('inputName', { required: true });
|
||||
const myBooleanInput = core.getBooleanInput('booleanInputName', { required: true });
|
||||
const myMultilineInput = core.getMultiline('multilineInputName', { required: true });
|
||||
core.setOutput('outputKey', 'outputVal');
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user