Add debugging for notification script (#2840)

This commit is contained in:
Devin Binnie
2023-09-15 11:58:39 -04:00
committed by GitHub
parent b7e5c6091d
commit 55fe6ecec9
2 changed files with 8 additions and 2 deletions

View File

@@ -217,5 +217,6 @@ jobs:
--arg icon_url "https://mattermost.com/wp-content/uploads/2022/02/icon.png" \
--arg username "MattermostRelease" \
--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
'{"username":$username,"icon_url": $icon_url, "text": $text }' > /tmp/webhook-data.json \
cat /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"