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"