From 34e36874d93fc2b4ca09032ad857f77f3988e95e Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 30 Jan 2024 17:05:47 -0600 Subject: [PATCH] try to switch to the master branch Signed-off-by: Jeff Carr --- checkReady.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/checkReady.go b/checkReady.go index 2f7bde7..b97dce8 100644 --- a/checkReady.go +++ b/checkReady.go @@ -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 }