fix(ci): replace unsupported telegram action with direct curl notification in workflow
This commit is contained in:
parent
c4eb13583e
commit
3ad1ad1f12
1 changed files with 5 additions and 10 deletions
|
|
@ -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 }})"
|
||||
|
|
|
|||
Loading…
Reference in a new issue