diff --git a/tools/release/main.go b/tools/release/main.go index 3af4fc0dbd..23426fa68f 100644 --- a/tools/release/main.go +++ b/tools/release/main.go @@ -155,12 +155,12 @@ description: > fmt.Println("Tag created, check with git tag") } - if *tag || *commit { - fmt.Println("Was a dry run, run with -commit and -tag to create release") - os.Exit(1) - } else { + if *tag && *commit { fmt.Println("RELEASE READY: you only need to\n$ git push --follow-tags") os.Exit(0) + } else { + fmt.Println("Was a dry run, run with -commit and -tag to create release") + os.Exit(1) } }