We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f98f3f5 commit 5ddd731Copy full SHA for 5ddd731
.github/workflows/upstream-sync.yml
@@ -156,10 +156,18 @@ jobs:
156
157
git fetch origin dev
158
git checkout -B dev origin/dev
159
-
+
160
# Create tag using master branch commit count
161
TAG_NAME="b$COMMIT_COUNT"
162
163
+ # Delete the tag if it already exists (both locally and remotely)
164
+ if git tag -l "$TAG_NAME" | grep -q "$TAG_NAME"; then
165
+ echo "Tag $TAG_NAME already exists. Deleting it first..."
166
+ git tag -d "$TAG_NAME" || true
167
+ git push --delete origin "$TAG_NAME" || true
168
+ echo "Existing tag deleted."
169
+ fi
170
171
# Create tag on the current commit (dev branch HEAD after merge)
172
git tag "$TAG_NAME"
173
git push origin "$TAG_NAME"
0 commit comments