diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -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() { |
