mirror of
https://github.com/docker/build-push-action.git
synced 2025-04-19 18:06:46 +00:00
Trim input list items
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
22b2fa68fc
commit
13137a8f9b
3 changed files with 17 additions and 2 deletions
|
@ -183,7 +183,7 @@ export async function getInputList(name: string, ignoreComma?: boolean): Promise
|
|||
res.push(output.join(','));
|
||||
}
|
||||
|
||||
return res.filter(item => item);
|
||||
return res.filter(item => item).map(pat => pat.trim());
|
||||
}
|
||||
|
||||
export const asyncForEach = async (array, callback) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue