From f9e42158390bfa59f35ea737772b7ca486cad8f1 Mon Sep 17 00:00:00 2001 From: gr2m Date: Fri, 4 Aug 2023 21:24:19 +0000 Subject: [PATCH] build: updated dist/run.cjs --- dist/run.cjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dist/run.cjs b/dist/run.cjs index 5f9588d..b7fdfb6 100644 --- a/dist/run.cjs +++ b/dist/run.cjs @@ -2215,6 +2215,7 @@ function main(core2, event2) { const body = event2.client_payload.release.body; const [ignore_, ...changelogs] = body.split(/^- /gm); const changelogsByComponent = {}; + const subscribedToComponents = process.env.INPUT_COMPONENTS.split(/\s*,\s*/); for (const changelog of changelogs) { const lines = changelog.split(/\n\s*/).filter(Boolean); const lastLine = lines.at(-1); @@ -2227,6 +2228,8 @@ function main(core2, event2) { continue; } for (const component of components) { + if (!subscribedToComponents.includes(component)) + continue; changelogsByComponent[component] = changelogsByComponent[component] || []; changelogsByComponent[component].push(lines.join("\n")); }