mirror of https://github.com/keeweb/keeweb
github action rebuilt
parent
eaf429de3d
commit
fd9dc1a801
|
@ -411,11 +411,19 @@ async function run() {
|
|||
const regex = new RegExp(
|
||||
`#####\\s+v${version.replace(/\./g, '\\.')}.*?\n([\\s\\S]*?)\n#####`
|
||||
);
|
||||
const body = releaseNotes
|
||||
|
||||
const bodyReleaseNotes = releaseNotes
|
||||
.match(regex)[1]
|
||||
.trim()
|
||||
.replace(/\s*\n/g, '\n');
|
||||
|
||||
const bodyTemplate =
|
||||
'{release_notes}\n\n' +
|
||||
'Want to keep releases happening? ' +
|
||||
'Donate to KeeWeb on [OpenCollective](https://opencollective.com/keeweb). ' +
|
||||
'Thank you!';
|
||||
const body = bodyTemplate.replace('{release_notes}', bodyReleaseNotes);
|
||||
|
||||
console.log(`Updating release with notes:\n${body}`);
|
||||
|
||||
await github.repos.updateRelease({
|
||||
|
|
Loading…
Reference in New Issue