[MM-51092] Automate release post for RCs and finals, include changelog (#2733)

This commit is contained in:
Devin Binnie
2023-05-25 10:03:53 -04:00
committed by GitHub
parent 6973fc7012
commit 8c580ff456
2 changed files with 14 additions and 1 deletions

View File

@@ -213,6 +213,6 @@ jobs:
jq --null-input \
--arg icon_url "https://mattermost.com/wp-content/uploads/2022/02/icon.png" \
--arg username "MattermostRelease" \
--arg text "[$(jq -r .version package.json)] Release process for the desktop app ended, the new release can be found on [GitHub](https://github.com/mattermost/desktop/releases)." \
--arg text "$(bash -x scripts/generate_release_post.sh $(jq -r .version package.json))" \
'{"username":$username,"icon_url": $icon_url, "text": $text }' > /tmp/webhook-data.json
curl -i -H "Content-Type: application/json" -X POST -d @/tmp/webhook-data.json ${{ secrets.MM_DESKTOP_RELEASE_WEBHOOK_URL }} || echo "NOFICATION FAILED! check logs as this will succeed intentionally"