fix: V3邮件发送改为本地执行,修复服务器脚本版本过旧导致send-v3命令不识别

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/9901ef74-496e-44c8-b41a-350fbcdefc24

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-04-05 16:37:57 +00:00 committed by GitHub
parent fc83587313
commit 36becd2840
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 6 deletions

View File

@ -374,12 +374,9 @@ jobs:
echo "📎 V3订阅链接: ${SUB_URL}"
echo "📊 V3仪表盘: ${DASHBOARD_URL}"
# 通过大脑服务器发送V3邮件
ssh -i ~/.ssh/id_brain \
${{ secrets.ZY_BRAIN_USER }}@${{ secrets.ZY_BRAIN_HOST }} \
"export ZY_SMTP_USER='${ZY_SMTP_USER}' ZY_SMTP_PASS='${ZY_SMTP_PASS}' && \
cd /opt/zhuyuan-brain/proxy && \
node service/send-subscription.js send-v3 '$EMAIL' '$SUB_URL' '$DASHBOARD_URL'" || {
# 本地发送V3邮件使用仓库最新代码避免服务器脚本版本滞后
cd ${{ github.workspace }}/server/proxy
node service/send-subscription.js send-v3 "$EMAIL" "$SUB_URL" "$DASHBOARD_URL" || {
echo ""
echo "⚠️ 邮件发送失败,请手动访问以下链接:"
echo " 订阅: $SUB_URL"