From a39f23850194f00b0151a12d8e3fea90857d9817 Mon Sep 17 00:00:00 2001 From: Christian Gregg Date: Fri, 20 Aug 2021 13:52:52 +0100 Subject: [PATCH] Fix release sleep --- release.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release.go b/release.go index 3b7dd705..8c2309aa 100644 --- a/release.go +++ b/release.go @@ -72,10 +72,10 @@ func release(ctx context.Context, cmd Outputter, h *heroku.Service, buildDir, ap case "succeeded": return nil case "pending": + time.Sleep(5 * time.Second) + continue } - - time.Sleep(5 * time.Second) } return fmt.Errorf("release still pending after multiple attempts")