This commit is contained in:
@@ -214,3 +214,32 @@ jobs:
|
|||||||
echo "║ ❌ DEPLOYMENT FAILED ║"
|
echo "║ ❌ DEPLOYMENT FAILED ║"
|
||||||
fi
|
fi
|
||||||
echo "╚══════════════════════════════════════════════════════════════════════════════╝"
|
echo "╚══════════════════════════════════════════════════════════════════════════════╝"
|
||||||
|
|
||||||
|
# ═══════════════════════════════════════════════════════════════════════════════
|
||||||
|
# NOTIFICATION: Gotify
|
||||||
|
# ═══════════════════════════════════════════════════════════════════════════════
|
||||||
|
- name: 🔔 Gotify Notification (Success)
|
||||||
|
if: success()
|
||||||
|
run: |
|
||||||
|
curl -X POST "https://gotify.infra.mintel.me/message?token=${{ secrets.GOTIFY_TOKEN }}" \
|
||||||
|
-F "title=✅ Deployment Success: ${{ github.repository }}" \
|
||||||
|
-F "message=The deployment of ${{ github.repository }} (branch: ${{ github.ref }}) was successful.
|
||||||
|
|
||||||
|
Commit: ${{ github.sha }}
|
||||||
|
Actor: ${{ github.actor }}
|
||||||
|
Run ID: ${{ github.run_id }}" \
|
||||||
|
-F "priority=5"
|
||||||
|
|
||||||
|
- name: 🔔 Gotify Notification (Failure)
|
||||||
|
if: failure()
|
||||||
|
run: |
|
||||||
|
curl -X POST "https://gotify.infra.mintel.me/message?token=${{ secrets.GOTIFY_TOKEN }}" \
|
||||||
|
-F "title=❌ Deployment Failed: ${{ github.repository }}" \
|
||||||
|
-F "message=The deployment of ${{ github.repository }} (branch: ${{ github.ref }}) failed!
|
||||||
|
|
||||||
|
Commit: ${{ github.sha }}
|
||||||
|
Actor: ${{ github.actor }}
|
||||||
|
Run ID: ${{ github.run_id }}
|
||||||
|
|
||||||
|
Please check the logs for details." \
|
||||||
|
-F "priority=8"
|
||||||
|
|||||||
Reference in New Issue
Block a user