DEVX-58: fix: handle 'already a release' error idempotently in publish

This commit is contained in:
emil
2026-06-25 23:32:28 +00:00
parent 0aefe1f028
commit dfcd33c35b
2 changed files with 39 additions and 0 deletions
+3
View File
@@ -298,6 +298,9 @@ def main(
try:
tea.create_release(repo, tag=tag, title=tag, body=release_body)
except TeaCLIError as e:
if "already" in str(e).lower() and "release" in str(e).lower():
click.echo(_("Gitea release {tag} already exists — skipping creation.", tag=tag))
return
raise click.ClickException(_("Release creation failed: {error}", error=str(e))) from None
click.echo(