Describe the bug
core.getInput is trimming whitespace by default, but core.getMultilineInput is not.
Also, core.getMultilineInput ignores trimWhitespace option.
To Reproduce
action.yml
# ...
inputs:
option:
description: a multiline option
index.js
import * as core from "@actions/core"
const option = core.getMultilineInput("option", {
trimWhitespace: true,
})
core.info(option)
workflow.yml
# ...
jobs:
test:
# ...
steps:
- uses: # ...
with:
option: |-
a
b
c
-> ["a ", " b ", " c"]
Expected behavior
-> ["a", "b", "c"]
Describe the bug
core.getInput is trimming whitespace by default, but core.getMultilineInput is not.
Also, core.getMultilineInput ignores trimWhitespace option.
To Reproduce
action.yml
index.js
workflow.yml
->
["a ", " b ", " c"]Expected behavior
->
["a", "b", "c"]