Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
  • Loading branch information
labkode committed Oct 24, 2019
1 parent 6c36db3 commit c46f8f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/release/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit c46f8f9

Please sign in to comment.