File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 52
52
sed -i "s/version = \"${CURRENT_VERSION}\"/version = \"${RC_VERSION}\"/" pyproject.toml
53
53
sed -i "s/__version__ = \"${CURRENT_VERSION}\"/__version__ = \"${RC_VERSION}\"/" src/__init__.py
54
54
55
- # Create pre-release tag
55
+ # Create pre-release tag (delete if exists)
56
56
git add pyproject.toml src/__init__.py
57
57
git commit -m "chore: bump version to ${RC_VERSION} [skip ci]" || echo "No changes to commit"
58
+
59
+ # Delete existing tag if it exists (locally and remotely)
60
+ git tag -d "v${RC_VERSION}" 2>/dev/null || true
61
+ git push --delete origin "v${RC_VERSION}" 2>/dev/null || true
62
+
63
+ # Create new tag
58
64
git tag -a "v${RC_VERSION}" -m "Pre-release version ${RC_VERSION}"
59
65
60
66
- name : Push tag to trigger Docker build
You can’t perform that action at this time.
0 commit comments