From d7dbef1c9e4a3dd4f16a7bcee795828b4801e8f6 Mon Sep 17 00:00:00 2001 From: Daniel Perrett Date: Tue, 25 Mar 2025 14:02:21 +0000 Subject: [PATCH] chore: guard GithubStatusChecks.new, which makes calls on initialize --- lib/kamal/cli/templates/sample_hooks/pre-deploy.sample | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/kamal/cli/templates/sample_hooks/pre-deploy.sample b/lib/kamal/cli/templates/sample_hooks/pre-deploy.sample index 1b280c71..06b86aa1 100755 --- a/lib/kamal/cli/templates/sample_hooks/pre-deploy.sample +++ b/lib/kamal/cli/templates/sample_hooks/pre-deploy.sample @@ -82,11 +82,12 @@ end $stdout.sync = true -puts "Checking build status..." -attempts = 0 -checks = GithubStatusChecks.new - begin + puts "Checking build status..." + + attempts = 0 + checks = GithubStatusChecks.new + loop do case checks.state when "success"