Skip to content

Commit

Permalink
Fix release notes not rendered correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Drarig29 committed Mar 14, 2024
1 parent ac80282 commit 6a0abbf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ jobs:
body: releaseNotes.body,
})
console.debug('Release notes:', JSON.stringify(releaseNotes.body))
// https:/actions/toolkit/issues/1689
const releaseNotesToCopy = releaseNotes.body.replace('-->\n\n', '-->\n')
await core.summary
.addHeading('Draft release created')
.addRaw('Find it here: ')
Expand All @@ -42,7 +47,7 @@ jobs:
.addRaw('Copy the release notes below, and paste them inside your release PR.')
.addBreak()
.addBreak()
.addCodeBlock(releaseNotes.body, 'markdown')
.addCodeBlock(releaseNotesToCopy, 'markdown')
.write()
return release.id
Expand Down

0 comments on commit 6a0abbf

Please sign in to comment.