Skip to content

Commit 789d188

Browse files
committed
Add exit with error code when release failed without exception
1 parent f28bd89 commit 789d188

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/redis_release/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ def release(
8383
)
8484
if result.message:
8585
console.print(f"[yellow]{result.message}[/yellow]")
86+
raise typer.Exit(1)
8687

8788
except Exception as e:
8889
console.print(f"[red] Release {tag} failed: {e}[/red]")

0 commit comments

Comments
 (0)