Skip to content

Commit 04621a6

Browse files
authored
chore: update ci create tag on dev branch (#32)
1 parent fcf9298 commit 04621a6

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/upstream-sync.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,7 @@ jobs:
160160
# Create tag using master branch commit count
161161
TAG_NAME="b$COMMIT_COUNT"
162162
163-
# Check if tag exists on dev branch
164-
if git ls-remote --tags origin refs/tags/$TAG_NAME | grep -q refs/tags/$TAG_NAME; then
165-
echo "Tag $TAG_NAME already exists on dev branch"
166-
else
167-
# Create tag on the current commit (dev branch HEAD after merge)
168-
git tag "$TAG_NAME"
169-
git push origin "$TAG_NAME"
170-
echo "Tag $TAG_NAME created successfully (total commits from master: $COMMIT_COUNT)"
171-
fi
163+
# Create tag on the current commit (dev branch HEAD after merge)
164+
git tag "$TAG_NAME"
165+
git push origin "$TAG_NAME"
166+
echo "Tag $TAG_NAME created successfully (total commits from master: $COMMIT_COUNT)"

0 commit comments

Comments
 (0)