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() } };