feat(telegram): configure deploy status and error level logging notification via Telegram API
Deploy to Production / Build Release Package (push) Failing after 19s
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Failing after 5s
Deploy to Production / Deploy to Production Server (push) Has been skipped
Deploy to Production / Post-Deployment Checks (push) Has been skipped
Snapshot Admin Deployment / build-and-deploy (push) Failing after 37s
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 2m18s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped

This commit is contained in:
2026-06-29 11:11:44 +09:00
parent c888486635
commit d7e937e67c
4 changed files with 80 additions and 26 deletions
+13 -26
View File
@@ -307,36 +307,23 @@ jobs:
path: deployment-report.txt
retention-days: 90
- name: Notify Slack (if configured)
- name: Notify Telegram
if: always()
run: |
if [ -n "${{ secrets.SLACK_WEBHOOK }}" ]; then
STATUS=${{ job.status }}
if [ "$STATUS" = "success" ]; then
EMOJI="✅"
COLOR="good"
else
EMOJI="❌"
COLOR="danger"
fi
curl -X POST ${{ secrets.SLACK_WEBHOOK }} \
-H 'Content-type: application/json' \
-d "{
\"attachments\": [{
\"color\": \"$COLOR\",
\"title\": \"$EMOJI Quant Engine v9 Deployment\",
\"text\": \"Run #${{ github.run_number }}\",
\"fields\": [
{\"title\": \"Status\", \"value\": \"$STATUS\", \"short\": true},
{\"title\": \"Service\", \"value\": \"${{ env.SERVICE_NAME }}\", \"short\": true},
{\"title\": \"URL\", \"value\": \"http://178.104.200.7/quant/\", \"short\": false}
],
\"ts\": $(date +%s)
}]
}"
STATUS=${{ job.status }}
if [ "$STATUS" = "success" ]; then
EMOJI="✅"
TEXT="*Quant Engine v9 Deployment SUCCESS* $EMOJI%0A• Run: #${{ github.run_number }}%0A• Commit: ${{ github.sha }}%0A• Service: ${{ env.SERVICE_NAME }}%0A• URL: http://178.104.200.7/quant/"
else
EMOJI="❌"
TEXT="*Quant Engine v9 Deployment FAILED* $EMOJI%0A• Run: #${{ github.run_number }}%0A• Commit: ${{ github.sha }}%0A• Service: ${{ env.SERVICE_NAME }}%0A• URL: http://178.104.200.7/quant/"
fi
curl -s -X POST "https://api.telegram.org/bot8734507814:AAFyacLMai8GB4K-hQ_Nd3t3D01A-h1ZdV0/sendMessage" \
-d "chat_id=-5460205872" \
-d "text=$TEXT" \
-d "parse_mode=Markdown"
post-deployment:
name: Post-Deployment Checks
needs: deploy-to-prod