From cfd395a4a060f2877c808a36d702704dcb1b46ed Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 16 Dec 2024 16:42:25 +0800 Subject: [PATCH] fix: ci --- .drone.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index d7d3f47..ec9aa57 100644 --- a/.drone.yml +++ b/.drone.yml @@ -31,9 +31,10 @@ steps: commands: - echo 192.168.0.2 git.1000my.com >> /etc/hosts - ping git.1000my.com -c 1 - - git clone --depth=1 -b $DRONE_REPO_BRANCH $DRONE_GIT_HTTP_URL . + - git clone --depth=1 $DRONE_GIT_HTTP_URL . - git submodule update --init --recursive - - git tag --merged test + - git checkout -b $DRONE_REPO_BRANCH || true + - git tag --merged $DRONE_REPO_BRANCH - name: 生成Release版本 pull: if-not-exists