From a65827c5d9f34ddf8d50404455953772c72b7467 Mon Sep 17 00:00:00 2001 From: pllx Date: Mon, 4 May 2026 18:25:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=83=A8=E7=BD=B2=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E6=97=A0=E6=9B=B4=E6=96=B0=E6=97=B6=E8=B7=B3=E8=BF=87?= =?UTF-8?q?=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy_update.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deploy_update.sh b/deploy_update.sh index 5e9bfe0..586c024 100644 --- a/deploy_update.sh +++ b/deploy_update.sh @@ -63,6 +63,11 @@ git fetch origin && git pull origin master if [ $? -ne 0 ]; then echo -e "${RED}❌ Git 失败${NC}"; exit 1; fi AFTER_REV=$(git rev-parse HEAD 2>/dev/null || echo "") +if [ -n "$BEFORE_REV" ] && [ -n "$AFTER_REV" ] && [ "$BEFORE_REV" = "$AFTER_REV" ]; then + echo -e "${GREEN}✅ 当前代码已是最新版本,本次没有可升级内容,跳过后续部署步骤。${NC}" + exit 0 +fi + FRONTEND_BUILD_NEEDED=0 FRONTEND_CHANGED_FILES="" MIGRATION_NEEDED=0