Do not fail deploy on Telegram notification errors
This commit is contained in:
@@ -219,7 +219,7 @@ jobs:
|
||||
|
||||
curl -fsS -X POST "https://api.telegram.org/bot${TG_BOT_TOKEN}/sendMessage" \
|
||||
--data-urlencode "chat_id=${TG_CHAT_ID}" \
|
||||
--data-urlencode "text=${MESSAGE}"
|
||||
--data-urlencode "text=${MESSAGE}" || echo "Telegram notification failed; deployment result is unchanged."
|
||||
|
||||
- name: Notify Telegram on failure
|
||||
if: failure()
|
||||
@@ -247,4 +247,4 @@ jobs:
|
||||
|
||||
curl -fsS -X POST "https://api.telegram.org/bot${TG_BOT_TOKEN}/sendMessage" \
|
||||
--data-urlencode "chat_id=${TG_CHAT_ID}" \
|
||||
--data-urlencode "text=${MESSAGE}"
|
||||
--data-urlencode "text=${MESSAGE}" || echo "Telegram notification failed; workflow failure was already recorded."
|
||||
|
||||
Reference in New Issue
Block a user