Skip to content

Commit

Permalink
updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
peterkogo committed Oct 30, 2024
1 parent 73b959e commit e0d6c72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/scripts/formatRelease.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ const removeThanks =
/Thanks \[@(?:moklick|peterkogo|hayleigh-dot-dev|chrtze|bcakmakoglu)\]\(.*\)! \- */g;
const removeCommits = /(\[.*\]\(.*\)) (\[.*\]\(.*\)) /g;
const removeDeps = /- *Updated dependencies.*/gs;
const removeNewlines = /\n\n/g;
const removeNewlines = /[\r\n]+/g;

(async () => {
const body = process.env.BODY;
let newBody = body
.replaceAll(removeThanks, '')
.replaceAll(removeCommits, '$1 ')
.replaceAll(removeDeps, '')
.replaceAll(removeNewlines, '');
.replaceAll(removeNewlines, '\n');
console.log(newBody);
})();

0 comments on commit e0d6c72

Please sign in to comment.