File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,20 @@ echo "TRAVIS_ALLOW_FAILURE: $TRAVIS_ALLOW_FAILURE"
2222GITHUB_URL=" https://api.github.com/repos/pmd/pmd-eclipse-plugin/releases"
2323RELEASE_ID=$( curl -s -H " Authorization: token ${GITHUB_OAUTH_TOKEN} " ${GITHUB_URL} /tags/${TRAVIS_TAG} | jq " .id" )
2424RELEASE_NAME=" PMD For Eclipse ${RELEASE_VERSION} ($( date -u +%d-%B-%Y) )"
25+
26+ # extract the release notes
27+ BEGIN_LINE=$( grep -n " ^## " ReleaseNotes.md| head -1| cut -d " :" -f 1)
28+ END_LINE=$( grep -n " ^## " ReleaseNotes.md| head -2| tail -1| cut -d " :" -f 1)
29+ END_LINE=$(( END_LINE - 1 ))
30+
2531RELEASE_BODY=" A new PMD for Eclipse plugin version has been released.
2632It is available via the update site: https://dl.bintray.com/pmd/pmd-eclipse-plugin/updates/
2733
28- Release notes: https://github.com/pmd/pmd-eclipse-plugin/blob/ ${TRAVIS_TAG} /ReleaseNotes.md
34+ $( cat ReleaseNotes.md | head - $END_LINE | tail - $BEGIN_LINE )
2935"
3036
37+
38+
3139RELEASE_BODY=" ${RELEASE_BODY// ' \' / \\\\ } "
3240RELEASE_BODY=" ${RELEASE_BODY// $' \r ' / } "
3341RELEASE_BODY=" ${RELEASE_BODY// $' \n ' / \\ r\\ n} "
You can’t perform that action at this time.
0 commit comments