From 7f87e7b4a7c2e20db433b57d49b4f30b1465d934 Mon Sep 17 00:00:00 2001 From: David Vennik Date: Wed, 21 Dec 2022 14:21:04 +0000 Subject: [PATCH] Allowing to specify different branch in first parameter --- cmd/bumper/main.go | 2 +- version.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/bumper/main.go b/cmd/bumper/main.go index c7510005..816dd023 100644 --- a/cmd/bumper/main.go +++ b/cmd/bumper/main.go @@ -228,6 +228,7 @@ func Version() string { continue } if splitted[i][2:] == branch { + log.I.S(splitted[i][2:]) isBranch = true branch = splitted[i][2:] break @@ -248,7 +249,6 @@ func Version() string { if e = runCmd("git", "tag", SemVer); check(e) { os.Exit(1) } - log.I.Ln(branch) if e = runCmd("git", "push", "origin", branch); check(e) { os.Exit(1) } diff --git a/version.go b/version.go index 123736b3..f2920c50 100644 --- a/version.go +++ b/version.go @@ -13,11 +13,11 @@ var ( // GitRef is the gitref, as in refs/heads/branchname. GitRef = "refs/heads/main" // ParentGitCommit is the commit hash of the parent HEAD. - ParentGitCommit = "7f05557992545e89c9b5d778012c3707c5c70b2a" + ParentGitCommit = "7a86b4b3e9407ebe3100b107501fa6cb1b461ba3" // BuildTime stores the time when the current binary was built. - BuildTime = "2022-12-21T14:20:04Z" + BuildTime = "2022-12-21T14:21:04Z" // SemVer lists the (latest) git tag on the build. - SemVer = "v0.0.200" + SemVer = "v0.0.201" // PathBase is the path base returned from runtime caller. PathBase = "/home/loki/src/github.com/Indra-Labs/indra/" // Major is the major number from the tag. @@ -25,7 +25,7 @@ var ( // Minor is the minor number from the tag. Minor = 0 // Patch is the patch version number from the tag. - Patch = 200 + Patch = 201 ) // Version returns a pretty printed version information string.