summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
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() {