feat(ci): add telegram failure notification to forgejo actions workflow
Some checks failed
Deploy Flowstate to VPS / deploy (push) Failing after 2s
Some checks failed
Deploy Flowstate to VPS / deploy (push) Failing after 2s
This commit is contained in:
parent
9802febef3
commit
c4eb13583e
1 changed files with 12 additions and 0 deletions
|
|
@ -34,3 +34,15 @@ jobs:
|
||||||
docker image prune -f
|
docker image prune -f
|
||||||
|
|
||||||
echo "Deployment completed successfully."
|
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 }}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue