Skip to content

Commit

Permalink
Merge pull request #9959 from tstromberg/jenky-hack
Browse files Browse the repository at this point in the history
When parsing release notes, parse up to the next version tag
  • Loading branch information
medyagh authored Dec 22, 2020
2 parents 167b6c4 + 14ed164 commit e06f7fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/jenkins/release_github_page.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if ! [[ ${VERSION_BUILD} =~ ^[0-9]+$ ]]; then
RELEASE_FLAGS="-p" # Pre-release
fi

RELEASE_NOTES=$(perl -e "\$p=0; while(<>) { if(/^## Version ${VERSION} -/) { \$p=1 } elsif (/^##/) { \$p=0 }; if (\$p) { print }}" < CHANGELOG.md)
RELEASE_NOTES=$(perl -e "\$p=0; while(<>) { if(/^## Version ${VERSION} -/) { \$p=1 } elsif (/^## Version/) { \$p=0 }; if (\$p) { print }}" < CHANGELOG.md)
if [[ "${RELEASE_NOTES}" = "" ]]; then
RELEASE_NOTES="(missing for ${VERSION})"
fi
Expand Down

0 comments on commit e06f7fc

Please sign in to comment.