From cc141973a5e96333c104edb89b9e8d2f009e6c0d Mon Sep 17 00:00:00 2001 From: yiqiu Date: Wed, 18 Mar 2026 17:46:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20drone=20=E9=83=A8=E7=BD=B2=E6=94=B9?= =?UTF-8?q?=E7=94=A8=20git=20reset=20--hard=20=E9=81=BF=E5=85=8D=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0=E6=94=B9=E5=8A=A8=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index a9c8d26..402454d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,8 +14,8 @@ steps: - cd /www/wwwroot/hgdemo.hgidc.cn/public/web/BlackFruit-web - # 判断是否已有 .git,没有就 clone,有就 pull - - if [ ! -d .git ]; then git clone https://yiqiu:***@gitea.ycyaw.com/yiqiu/BlackFruit-UI.git .; else git pull; fi + # 判断是否已有 .git,没有就 clone,有就强制同步远程最新代码 + - if [ ! -d .git ]; then git clone https://yiqiu:***@gitea.ycyaw.com/yiqiu/BlackFruit-UI.git .; else git fetch --all && git reset --hard origin/main; fi - ls -l