-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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 optionindex.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"]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working