release: Fix changelog output.

9bd340957f changed the headers; while we no longer store the
changelog text in the Github release object, we should still output
the changelog to STDOUT correctly.

(cherry picked from commit db4e093ad7)
This commit is contained in:
Alex Vandiver
2024-03-19 18:17:02 -04:00
committed by Tim Abbott
parent 45585acc4e
commit ca7cb771fb

View File

@@ -111,7 +111,7 @@ gh auth status \
# Extract the changelog, print it
changelog_anchor="zulip-server-${version//./-}"
changelog=$(VERSION="$version" perl -nle '$v=quotemeta($ENV{VERSION}); print if $rc = /^### $v/ .. /^#{1,3} (?!$v)/ and $rc !~ /E0/' docs/overview/changelog.md)
changelog=$(VERSION="$version" perl -nle '$v=quotemeta($ENV{VERSION}); print if $rc = /^### Zulip Server $v/ .. /^#{1,3} Zulip Server (?!$v)/ and $rc !~ /E0/' docs/overview/changelog.md)
echo "$changelog"
echo -e "\n\n(pausing for 15s, ^C to cancel)"