Skip to content

Commit 945a41f

Browse files
committed
refactor: delete the release tag on dry runs
1 parent daf0ad3 commit 945a41f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

template/scripts/release.py.jinja

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ def main(argv: Sequence[str] | None = None) -> int: # noqa: PLR0911, PLR0915
136136
f"Removed release branch {release_branch!r} "
137137
f"and switched back to {base_branch!r}."
138138
)
139+
run(("git", "tag", "-d", release_tag))
140+
print(f"Removed release tag {release_tag!r}.")
139141
return 0
140142

141143
# Push changes to the remote repository and push the release tag.

0 commit comments

Comments
 (0)