Skip to content

Commit

Permalink
build: updated dist/run.cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m authored and github-actions[bot] committed Aug 4, 2023
1 parent 076e2d6 commit f9e4215
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dist/run.cjs
Expand Up @@ -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);
Expand All @@ -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"));
}
Expand Down

0 comments on commit f9e4215

Please sign in to comment.