diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 4b275d8..885abb8 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -36,8 +36,8 @@ jobs: echo "Deployment completed successfully." - name: Send Telegram notification on failure - 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 }})" + 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: $GITHUB_REPOSITORY (Commit: $GITHUB_SHA)"