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:
parent
809f65c9ac
commit
aa7a51d83e
|
|
@ -165,6 +165,10 @@ jobs:
|
||||||
echo "💡 可先使用 list-user-emails 查看所有用户邮箱"
|
echo "💡 可先使用 list-user-emails 查看所有用户邮箱"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
if ! echo "$EMAIL" | grep -qE '^[^@]+@[^@]+\.[^@]+$'; then
|
||||||
|
echo "❌ 邮箱格式不正确: $EMAIL"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
echo "单独发送更新通知给: $EMAIL ..."
|
echo "单独发送更新通知给: $EMAIL ..."
|
||||||
$SSH_CMD "
|
$SSH_CMD "
|
||||||
cd $PROXY_DIR
|
cd $PROXY_DIR
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue