From 53aed4f1d77e854ebdad78b58e4243e2299b1db1 Mon Sep 17 00:00:00 2001 From: Chris Gavin Date: Wed, 6 Apr 2022 20:32:08 +0100 Subject: [PATCH] Add a counter to show how many bundles have been pushed and how many are left. --- internal/push/push.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/push/push.go b/internal/push/push.go index 676698c..b91abf1 100644 --- a/internal/push/push.go +++ b/internal/push/push.go @@ -348,9 +348,9 @@ func (pushService *pushService) pushReleases() error { if err != nil { return errors.Wrap(err, "Error reading releases.") } - for _, releasePathStat := range releasePathStats { + for index, releasePathStat := range releasePathStats { releaseName := releasePathStat.Name() - log.Debugf("Pushing CodeQL bundles release %s...", releaseName) + log.Debugf("Pulling CodeQL bundle %s (%d/%d)...", releaseName, index+1, len(releasePathStats)) release, err := pushService.createOrUpdateRelease(releaseName) if err != nil { return err