Skip to content

Commit

Permalink
ci: Improve release notes processing
Browse files Browse the repository at this point in the history
Makes the perl regex stop at the first "\nChanges in" hit, instead of
"\n\n". This should allow us to use more freely formatted notes in the
release.
  • Loading branch information
GeorgesStavracas committed Jan 20, 2025
1 parent d6abe3c commit af4917a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
# Extract the changelog
{
echo "releaseChangelog<<EOF"
perl -0777nE 'print $& if /(?<=\n\n).*?(?=\n\n)/sg' NEWS
perl -0777nE 'print $& if /(?<=\n\n).*?(?=\nChanges in)/sg' NEWS
echo "\nEOF"
} | tee -a $GITHUB_ENV
echo $releaseChangelog
Expand Down

0 comments on commit af4917a

Please sign in to comment.