Update deploy.yml
This commit is contained in:
1 parent
e8213d9e83
commit
ec0b64abea
1 file changed
+10
-10
@@ -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}" \
|
||||
|
||||
Reference in new issue
Block a user