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 Jul 7, 2023
1 parent 04968b5 commit c96ae2e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions dist/run.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2241,14 +2241,18 @@ function main(core2, event2) {
);
core2.setOutput(
"changelogsByComponentMarkdown",
yamlEscape(toMarkdown(changelogsByComponent))
yamlEscape(toMarkdown(changelogsByComponent, event2))
);
}
function toMarkdown(changelogsByComponent) {
function toMarkdown(changelogsByComponent, event2) {
return Object.entries(changelogsByComponent).map(([component, changelogs]) => {
return `### ${component}
- ${changelogs.join("\n- ")}`;
- ${changelogs.join("\n- ")}
---
Full release notes: ${event2.client_payload.release.html_url}`;
}).join("\n\n");
}
function yamlEscape(string) {
Expand Down

0 comments on commit c96ae2e

Please sign in to comment.