Skip to content

Commit cb5769c

Browse files
committed
👷 优化发布流程:发布产物自动打标纯语义化版本 Tag
1 parent ff29d9a commit cb5769c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ jobs:
7878
RAW_TAG="${{ github.ref_name }}"
7979
CLEAN_TAG="${RAW_TAG#release/}"
8080
CLEAN_TAG="${CLEAN_TAG#release-}"
81-
if [[ ! "$CLEAN_TAG" =~ ^v ]]; then
82-
CLEAN_TAG="v${CLEAN_TAG}"
83-
fi
81+
CLEAN_TAG="${CLEAN_TAG#v}"
8482
8583
git tag -f "$CLEAN_TAG"
8684
git push origin "$CLEAN_TAG" --force

0 commit comments

Comments
 (0)