fix(deploy): run DB sync by default when release args omitted

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-02 18:12:35 +08:00
parent 847a3f0dc3
commit a017a27b60
+2 -1
View File
@@ -169,10 +169,11 @@ git fetch "\$GIT_REMOTE"
git checkout "\$GIT_BRANCH"
git pull --ff-only "\$GIT_REMOTE" "\$GIT_BRANCH"
# 无额外参数时执行 DB 同步;无 schema 变更请显式传 -- --skip-db
if [[ -n "\$RELEASE_ARGS" ]]; then
bash deploy/remote-release.sh \$RELEASE_ARGS
else
bash deploy/remote-release.sh --skip-db
bash deploy/remote-release.sh
fi
EOF