Skip to content

Commit

Permalink
better exit when release exists
Browse files Browse the repository at this point in the history
  • Loading branch information
tonymet committed Dec 19, 2024
1 parent 9e70678 commit f8200b2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion gcloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ func main() {
cmdArgsGithub.Token = os.Getenv("GH_TOKEN")
cmdGithubRelease.Parse(os.Args[2:])
err := misc.GithubRelease(cmdArgsGithub)
if err != nil {
if err == misc.ErrReleaseExists {
fmt.Fprintln(os.Stderr, "Release Exists: "+cmdArgsGithub.Tag)
} else if err != nil {
panic(err)
}
case "kms-sign":
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ require (
github.com/googleapis/enterprise-certificate-proxy v0.3.4 // indirect
github.com/googleapis/gax-go/v2 v2.14.0 // indirect
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 // indirect
github.com/tonymet/gcloud-go v0.0.5
github.com/tonymet/gcloud-go v0.0.6
go.opencensus.io v0.24.0 // indirect
go.opentelemetry.io/contrib/detectors/gcp v1.32.0 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.57.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/tonymet/gcloud-go v0.0.5 h1:+cP3yp9yyoB3bY1WYRLBUe0tcjJ6ONlJCkZ+x+VdKGs=
github.com/tonymet/gcloud-go v0.0.5/go.mod h1:qn3/qHA68Ju65KQl7vaJk/kfrF1tDtmmtYsTHXy/sbo=
github.com/tonymet/gcloud-go v0.0.6 h1:sRre6OppHEI+qoxHun6DOBab+4e02S9YrR3c600VIkw=
github.com/tonymet/gcloud-go v0.0.6/go.mod h1:qn3/qHA68Ju65KQl7vaJk/kfrF1tDtmmtYsTHXy/sbo=
go.einride.tech/aip v0.68.0 h1:4seM66oLzTpz50u4K1zlJyOXQ3tCzcJN7I22tKkjipw=
go.einride.tech/aip v0.68.0/go.mod h1:7y9FF8VtPWqpxuAxl0KQWqaULxW4zFIesD6zF5RIHHg=
go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0=
Expand Down

0 comments on commit f8200b2

Please sign in to comment.