Update deploy.yml

This commit is contained in:
Vaica committed 2026-06-24 23:20:20 +08:00
1 parent 6ad420418e
commit 6283738db8
1 file changed
+10 -10
+10 -10
View File
@@ -429,23 +429,23 @@ jobs:
run: node scripts/generate_notification_report.js
- name: Send Telegram notification
if: secrets.TELEGRAM_BOT_TOKEN && secrets.TELEGRAM_CHAT_ID
if: ${{ secrets.TELEGRAM_BOT_TOKEN != '' && secrets.TELEGRAM_CHAT_ID != '' }}
env:
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
run: |
MESSAGE="✅ **部署成功**
📦 项目: ${{ github.repository }}
🌿 分支: ${{ github.ref_name }}
🔗 Commit: ${{ github.sha }}
🕐 时间: $(date +'%Y-%m-%d %H:%M:%S')
📦 项目: ${{ github.repository }}
🌿 分支: ${{ github.ref_name }}
🔗 Commit: ${{ github.sha }}
🕐 时间: $(date +'%Y-%m-%d %H:%M:%S')
📊 部署目标:
- EdgeOne Pages ✓
- UpYun ✓
- CDN 刷新 ✓"
📊 部署目标:
- EdgeOne Pages ✓
- UpYun ✓
- CDN 刷新 ✓"
curl -s -X POST "https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendMessage" \
-d chat_id="${TELEGRAM_CHAT_ID}" \
-d text="${MESSAGE}" \