From c4eb13583e8fb7a7ff86f05e93006420cea8c301 Mon Sep 17 00:00:00 2001 From: Chneemann Date: Sat, 22 Aug 2026 07:26:32 +0200 Subject: [PATCH] feat(ci): add telegram failure notification to forgejo actions workflow --- .forgejo/workflows/deploy.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index bfeaaaa..b54c060 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -34,3 +34,15 @@ jobs: docker image prune -f 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 }}