From 6b2e5cb50b8fa34d2fa398bfe29c1a5e0ad519a7 Mon Sep 17 00:00:00 2001 From: Saketh Somaraju Date: Mon, 2 Feb 2026 11:41:59 +0530 Subject: [PATCH] fix(deploy: exit non-zero if uncommitted changes are present --- cmd/cloud/deploy.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/cloud/deploy.go b/cmd/cloud/deploy.go index c722d81d0..36a3dbc4c 100644 --- a/cmd/cloud/deploy.go +++ b/cmd/cloud/deploy.go @@ -1,7 +1,6 @@ package cloud import ( - "fmt" "time" cloud "github.com/astronomer/astro-cli/cloud/deploy" @@ -132,8 +131,7 @@ func deploy(cmd *cobra.Command, args []string) error { } if git.HasUncommittedChanges("") && !forceDeploy { - fmt.Println(registryUncommitedChangesMsg) - return nil + return errors.New(registryUncommitedChangesMsg) } // case for astro deploy --dags whose default operation should be not running any tests