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