From 2d118d3ae7399c435f8327c8fcee8240824d8edd Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 28 Jan 2025 11:36:06 -0600 Subject: worked pretty well last release --- main.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index c36d461..56adbfe 100644 --- a/main.go +++ b/main.go @@ -119,8 +119,18 @@ func main() { } me.Enable() - // set all branches to master & findNext() - makePrepareRelease() + // run this each time something gets published successfully + rePrepareRelease() + + if findNext() { + log.Info("prepare release findNext() returned true") + } else { + // check if nothing is found an exit? + if me.found.Len() == 0 { + log.Info("nothing found to publish") + os.Exit(0) + } + } // intermittently scans the status indefinitly me.repos.View.Watchdog(func() { -- cgit v1.2.3