forked from phoedos/pmd
Add json request in output in case of error
Fix release script
This commit is contained in:
parent
3d4e17b2cf
commit
fcc515902c
@ -28,6 +28,10 @@ EOF
|
||||
echo "Updating release at https://api.github.com/repos/pmd/pmd/releases/${RELEASE_ID}..."
|
||||
RESPONSE=$(curl -i -s -H "Authorization: token ${GITHUB_OAUTH_TOKEN}" -H "Content-Type: application/json" --data-binary "@release-edit-request.json" -X PATCH https://api.github.com/repos/pmd/pmd/releases/${RELEASE_ID})
|
||||
if [[ "$RESPONSE" != *"HTTP/1.1 200"* ]]; then
|
||||
echo "Request:"
|
||||
cat release-edit-request.json
|
||||
echo
|
||||
echo "Response:"
|
||||
echo "$RESPONSE"
|
||||
else
|
||||
echo "Update OK"
|
||||
|
@ -140,8 +140,8 @@ echo
|
||||
echo "Verify the new release on github: <https://github.com/pmd/pmd/releases/tag/pmd_releases/${RELEASE_VERSION}>"
|
||||
echo
|
||||
echo
|
||||
echo "Send out an announcement mail to the mailing list:
|
||||
echo "To: PMD Developers List <pmd-devel@lists.sourceforge.net>
|
||||
echo "Send out an announcement mail to the mailing list:"
|
||||
echo "To: PMD Developers List <pmd-devel@lists.sourceforge.net>"
|
||||
echo "Subject: [ANNOUNCE] PMD ${RELEASE_VERSION} Released"
|
||||
echo "Body: !!Copy Changelog!!"
|
||||
echo
|
||||
|
Loading…
x
Reference in New Issue
Block a user