fix(ci): replace unsupported telegram action with direct curl notification in workflow

This commit is contained in:
Chneemann 2026-08-22 07:29:36 +02:00
parent c4eb13583e
commit 3ad1ad1f12
No known key found for this signature in database

View file

@ -36,13 +36,8 @@ jobs:
echo "Deployment completed successfully."
- name: Send Telegram notification on failure
if: failure()
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_CHAT_ID }}
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
message: |
❌ Deployment Failed!
Repository: ${{ github.repository }}
Commit: ${{ github.sha }}
Workflow: ${{ github.workflow }}
if: failure()
run: |
curl -s -X POST "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" \
-d chat_id="${{ secrets.TELEGRAM_CHAT_ID }}" \
-d text="❌ Deployment Failed! Repository: ${{ gitea.repository || github.repository }} (Commit: ${{ gitea.sha || github.sha }})"