From 8ae427cbff6d8dd18315064d0eac11c19ed0d045 Mon Sep 17 00:00:00 2001 From: Minh141120 Date: Thu, 27 Mar 2025 09:12:26 +0700 Subject: [PATCH] chore: update ci create tag on dev branch --- .github/workflows/upstream-sync.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/upstream-sync.yml b/.github/workflows/upstream-sync.yml index 3f04688c21940..72c0bc8e1da06 100644 --- a/.github/workflows/upstream-sync.yml +++ b/.github/workflows/upstream-sync.yml @@ -160,12 +160,7 @@ jobs: # Create tag using master branch commit count TAG_NAME="b$COMMIT_COUNT" - # Check if tag exists on dev branch - if git ls-remote --tags origin refs/tags/$TAG_NAME | grep -q refs/tags/$TAG_NAME; then - echo "Tag $TAG_NAME already exists on dev branch" - else - # Create tag on the current commit (dev branch HEAD after merge) - git tag "$TAG_NAME" - git push origin "$TAG_NAME" - echo "Tag $TAG_NAME created successfully (total commits from master: $COMMIT_COUNT)" - fi \ No newline at end of file + # Create tag on the current commit (dev branch HEAD after merge) + git tag "$TAG_NAME" + git push origin "$TAG_NAME" + echo "Tag $TAG_NAME created successfully (total commits from master: $COMMIT_COUNT)" \ No newline at end of file