Update deploy.yml
This commit is contained in:
1 parent
6ad420418e
commit
6283738db8
1 file changed
+10
-10
@@ -429,23 +429,23 @@ jobs:
|
|||||||
run: node scripts/generate_notification_report.js
|
run: node scripts/generate_notification_report.js
|
||||||
|
|
||||||
- name: Send Telegram notification
|
- name: Send Telegram notification
|
||||||
if: secrets.TELEGRAM_BOT_TOKEN && secrets.TELEGRAM_CHAT_ID
|
if: ${{ secrets.TELEGRAM_BOT_TOKEN != '' && secrets.TELEGRAM_CHAT_ID != '' }}
|
||||||
env:
|
env:
|
||||||
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
||||||
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
|
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
|
||||||
run: |
|
run: |
|
||||||
MESSAGE="✅ **部署成功**
|
MESSAGE="✅ **部署成功**
|
||||||
|
|
||||||
📦 项目: ${{ github.repository }}
|
📦 项目: ${{ github.repository }}
|
||||||
🌿 分支: ${{ github.ref_name }}
|
🌿 分支: ${{ github.ref_name }}
|
||||||
🔗 Commit: ${{ github.sha }}
|
🔗 Commit: ${{ github.sha }}
|
||||||
🕐 时间: $(date +'%Y-%m-%d %H:%M:%S')
|
🕐 时间: $(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" \
|
curl -s -X POST "https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendMessage" \
|
||||||
-d chat_id="${TELEGRAM_CHAT_ID}" \
|
-d chat_id="${TELEGRAM_CHAT_ID}" \
|
||||||
-d text="${MESSAGE}" \
|
-d text="${MESSAGE}" \
|
||||||
|
|||||||
Reference in new issue
Block a user