From 318716bd89f19866f9008a2631bf74b997f553c7 Mon Sep 17 00:00:00 2001 From: chengjingtao Date: Sun, 19 Apr 2026 09:04:31 +0000 Subject: [PATCH] ci: keep branch version in auto-tag instead of bumping patch Use the branch version directly (v0.0.18-alauda-N) instead of incrementing the patch version (v0.0.19-alauda-N). Only the alauda suffix N is incremented on each push. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/alauda-auto-tag.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/alauda-auto-tag.yml b/.github/workflows/alauda-auto-tag.yml index c29fcea2d..94d6784a6 100644 --- a/.github/workflows/alauda-auto-tag.yml +++ b/.github/workflows/alauda-auto-tag.yml @@ -31,15 +31,7 @@ jobs: PREFIX="${BRANCH_NAME%%-*}" # alauda BASE_VERSION="${BRANCH_NAME#${PREFIX}-}" # v0.0.18 - VERSION_NO_V="${BASE_VERSION#v}" # 0.0.18 - MAJOR=$(echo "$VERSION_NO_V" | cut -d. -f1) - MINOR=$(echo "$VERSION_NO_V" | cut -d. -f2) - PATCH=$(echo "$VERSION_NO_V" | cut -d. -f3) - - NEXT_PATCH=$((PATCH + 1)) - NEXT_VERSION="v${MAJOR}.${MINOR}.${NEXT_PATCH}" # v0.0.19 - - TAG_PREFIX="${NEXT_VERSION}-${PREFIX}" # v0.0.19-alauda + TAG_PREFIX="${BASE_VERSION}-${PREFIX}" # v0.0.18-alauda echo "TAG_PREFIX=$TAG_PREFIX" echo "tag_prefix=$TAG_PREFIX" >> $GITHUB_OUTPUT