in1
Some checks failed
CI / build (20.15.1) (push) Failing after 24m12s

This commit is contained in:
shanshanzhong 2025-09-26 18:50:38 -07:00
parent 5b7f778551
commit bd4091524e

View File

@ -721,39 +721,45 @@ jobs:
docker logs ppanel-user-web || true
exit 1
- name: 发送成功通知到Telegram
# 步骤5: TG通知 (成功)
- name: 📱 发送成功通知到Telegram
if: success()
run: |
MESSAGE="✅ 部署成功!
uses: chapvic/telegram-notify@master
with:
bot_token: ${{ env.TELEGRAM_BOT_TOKEN }}
chat_id: ${{ env.TELEGRAM_CHAT_ID }}
message: |
✅ **部署成功!**
📦 项目: ${{ github.repository }}
🌿 分支: ${{ github.ref_name }}
🔖 版本: ${{ env.VERSION }}
🎯 构建目标: ${{ env.BUILD_TARGET }}
🔗 API地址: ${{ env.NEXT_PUBLIC_API_URL }}
📦 **项目**: ${{ github.repository }}
🌿 **分支**: ${{ github.ref_name }}
🔖 **版本**: ${{ env.VERSION }}
🎯 **构建目标**: ${{ env.BUILD_TARGET }}
🔗 **API地址**: ${{ env.NEXT_PUBLIC_API_URL }}
📝 **提交**: ${{ github.sha }}
👤 **提交者**: ${{ github.actor }}
🕐 **时间**: ${{ github.event.head_commit.timestamp }}
🕐 时间: $(date '+%Y-%m-%d %H:%M:%S')"
🚀 **服务已成功部署到生产环境**
parse_mode: Markdown
curl -s -X POST "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" \
-d chat_id="${{ secrets.TELEGRAM_CHAT_ID }}" \
-d text="$MESSAGE" \
-d parse_mode="HTML"
- name: 发送失败通知到Telegram
# 步骤5: TG通知 (失败)
- name: 📱 发送失败通知到Telegram
if: failure()
run: |
MESSAGE="❌ 部署失败!
uses: chapvic/telegram-notify@master
with:
bot_token: ${{ env.TELEGRAM_BOT_TOKEN }}
chat_id: ${{ env.TELEGRAM_CHAT_ID }}
message: |
❌ **部署失败!**
📦 项目: ${{ github.repository }}
🌿 分支: ${{ github.ref_name }}
🔖 版本: ${{ env.VERSION }}
🎯 构建目标: ${{ env.BUILD_TARGET }}
📦 **项目**: ${{ github.repository }}
🌿 **分支**: ${{ github.ref_name }}
🔖 **版本**: ${{ env.VERSION }}
🎯 **构建目标**: ${{ env.BUILD_TARGET }}
📝 **提交**: ${{ github.sha }}
👤 **提交者**: ${{ github.actor }}
🕐 **时间**: ${{ github.event.head_commit.timestamp }}
🕐 时间: $(date '+%Y-%m-%d %H:%M:%S')
请检查构建日志获取详细信息。"
curl -s -X POST "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" \
-d chat_id="${{ secrets.TELEGRAM_CHAT_ID }}" \
-d text="$MESSAGE" \
-d parse_mode="HTML"
⚠️ **请检查构建日志获取详细信息**
parse_mode: Markdown