fix(ci): replace unsupported telegram action with direct curl notification in workflow
This commit is contained in:
parent
c4eb13583e
commit
3ad1ad1f12
1 changed files with 5 additions and 10 deletions
|
|
@ -36,13 +36,8 @@ jobs:
|
||||||
echo "Deployment completed successfully."
|
echo "Deployment completed successfully."
|
||||||
|
|
||||||
- name: Send Telegram notification on failure
|
- name: Send Telegram notification on failure
|
||||||
if: failure()
|
if: failure()
|
||||||
uses: appleboy/telegram-action@master
|
run: |
|
||||||
with:
|
curl -s -X POST "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" \
|
||||||
to: ${{ secrets.TELEGRAM_CHAT_ID }}
|
-d chat_id="${{ secrets.TELEGRAM_CHAT_ID }}" \
|
||||||
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
-d text="❌ Deployment Failed! Repository: ${{ gitea.repository || github.repository }} (Commit: ${{ gitea.sha || github.sha }})"
|
||||||
message: |
|
|
||||||
❌ Deployment Failed!
|
|
||||||
Repository: ${{ github.repository }}
|
|
||||||
Commit: ${{ github.sha }}
|
|
||||||
Workflow: ${{ github.workflow }}
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue