From df5b6d0552d173f22e4e40a27366ee3ea4178c65 Mon Sep 17 00:00:00 2001 From: VillagerTom Date: Sun, 18 Feb 2024 20:35:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=88=E7=82=B9=E6=8F=90=E4=BA=A4=E5=BA=94?= =?UTF-8?q?=E7=94=B1HEAD=E6=94=B9=E4=B8=BAFETCH=5FHEAD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CI.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index c06fd971c..d7e861b46 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -35,8 +35,7 @@ jobs: echo "当前版本tag不存在,请手动生成tag." exit 1 fi - git log --oneline HEAD - first_parent_commit_count=$(git rev-list --first-parent --count $recent_release_tag..HEAD) + first_parent_commit_count=$(git rev-list --first-parent --count $recent_release_tag..FETCH_HEAD) echo "count=$first_parent_commit_count" >> $GITHUB_OUTPUT - name: 更新版本号