From 0189b7d9bd9d08995dfc330bd59c57ed6b6ae093 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Sat, 8 Feb 2020 12:45:40 +0100 Subject: [PATCH] [ci] Add a simple twitter link to tweet about the release --- do-release.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/do-release.sh b/do-release.sh index 0a8108ba1f..614c8f12c4 100755 --- a/do-release.sh +++ b/do-release.sh @@ -204,6 +204,16 @@ echo "$NEW_RELEASE_NOTES" echo echo echo +tweet="PMD ${RELEASE_VERSION} released: https://github.com/pmd/pmd/releases/tag/pmd_releases/${RELEASE_VERSION} #PMD" +tweet="${tweet// /%20}" +tweet="${tweet//:/%3A}" +tweet="${tweet//#/%23}" +tweet="${tweet//\//%2F}" +tweet="${tweet//$'\r'//}" +tweet="${tweet//$'\n'//%0A}" +echo "* Tweet about this release on https://twitter.com/pmd_analyzer:" +echo " " +echo echo "------------------------------------------" echo "Done." echo "------------------------------------------"