mirror of
https://github.com/docker/setup-buildx-action.git
synced 2025-04-22 16:06:36 +02:00
Exclude empty items from input list
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
991a380ca3
commit
67730cc1c5
3 changed files with 21 additions and 2 deletions
3
dist/index.js
generated
vendored
3
dist/index.js
generated
vendored
|
@ -6594,7 +6594,8 @@ function getInputList(name, ignoreComma) {
|
|||
}
|
||||
return items
|
||||
.split(/\r?\n/)
|
||||
.reduce((acc, line) => acc.concat(!ignoreComma ? line.split(',') : line).map(pat => pat.trim()), []);
|
||||
.filter(x => x)
|
||||
.reduce((acc, line) => acc.concat(!ignoreComma ? line.split(',').filter(x => x) : line).map(pat => pat.trim()), []);
|
||||
});
|
||||
}
|
||||
exports.getInputList = getInputList;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue