fix: 增加工作流中邮箱格式校验

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/90aad306-0211-4a5b-b8b2-a130ae758c92

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-04-06 05:30:05 +00:00 committed by GitHub
parent 809f65c9ac
commit aa7a51d83e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -165,6 +165,10 @@ jobs:
echo "💡 可先使用 list-user-emails 查看所有用户邮箱"
exit 1
fi
if ! echo "$EMAIL" | grep -qE '^[^@]+@[^@]+\.[^@]+$'; then
echo "❌ 邮箱格式不正确: $EMAIL"
exit 1
fi
echo "单独发送更新通知给: $EMAIL ..."
$SSH_CMD "
cd $PROXY_DIR