From 3ad1ad1f12b9e427a23843c907deff1b480eb741 Mon Sep 17 00:00:00 2001 From: Chneemann Date: Sat, 22 Aug 2026 07:29:36 +0200 Subject: [PATCH] fix(ci): replace unsupported telegram action with direct curl notification in workflow --- .forgejo/workflows/deploy.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index b54c060..4b275d8 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -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 }})"