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

@ -37,12 +37,7 @@ jobs:
- 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 }}