try to switch to the master branch
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
c34090e798
commit
34e36874d9
|
@ -61,11 +61,21 @@ func CheckReady() bool {
|
|||
return false
|
||||
}
|
||||
|
||||
|
||||
// final checks here
|
||||
if dirtyS == "ready to tag version" {
|
||||
log.Info("\trepo is ready", release.current.String(), "ready to tag version")
|
||||
} else {
|
||||
log.Info("\trepo is not ready", dirtyS, "!= 'ready to tag version'")
|
||||
return false
|
||||
}
|
||||
|
||||
curName := release.current.status.GetCurrentBranchName()
|
||||
mName := release.current.status.GetMasterBranchName()
|
||||
|
||||
if curName == mName {
|
||||
log.Info("\trepo is ready working from main branch", curName, "=", mName)
|
||||
} else {
|
||||
log.Info("\trepo is not ready main branch", curName, "!=", mName)
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue