try to switch to the master branch

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-30 17:05:47 -06:00
parent c34090e798
commit 34e36874d9
1 changed files with 11 additions and 1 deletions

View File

@ -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
}