summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-28 11:36:06 -0600
committerJeff Carr <[email protected]>2025-01-28 11:36:06 -0600
commit2d118d3ae7399c435f8327c8fcee8240824d8edd (patch)
treef7c0dc79c127408e3b9334aa4eae58a6934ac1cd /main.go
parent0ec680f2c3264d7121bb60a298e2c495a9709d4f (diff)
worked pretty well last releasev0.23.34v0.23.33
Diffstat (limited to 'main.go')
-rw-r--r--main.go14
1 files changed, 12 insertions, 2 deletions
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() {