From d2b90c909e2f582d38400af7318f5bea39c3da02 Mon Sep 17 00:00:00 2001 From: Elias Kassell Date: Tue, 26 Mar 2024 16:00:57 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cli/index.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/cli/index.ts b/cli/index.ts index 2294cab7f..9b212bc4b 100644 --- a/cli/index.ts +++ b/cli/index.ts @@ -87,15 +87,7 @@ const tagsOption: INamedOption = { option: { describe: "A list of tags to filter the actions to run.", type: "array", - coerce: (rawTags: string[] | null) => { - const tags: string[] = []; - rawTags.forEach(rawTag => - rawTag?.split(",").forEach(tag => { - tags.push(tag); - }) - ); - return tags; - } + coerce: (rawTags: string[] | null) => rawTags.map(tags => tags.split(",")).flat() } };