Commit d5f51453 authored by John Skarbek's avatar John Skarbek

bail when there are no available picks

parent 4b58c65f
......@@ -31,7 +31,9 @@ namespace :auto_deploy do
.new(ReleaseTools::Project::GitlabEe, version, auto_deploy_branch)
.execute
successful_picks = 0
results.each do |result|
successful_picks += 1 if result.success?
$stdout.puts " #{icon.call(result)} #{result.url}"
end
......@@ -42,9 +44,12 @@ namespace :auto_deploy do
.execute
results.each do |result|
successful_picks += 1 if result.success?
$stdout.puts " #{icon.call(result)} #{result.url}"
end
raise "Nothing was picked, bailing..." if successful_picks == 0
conflicts = ReleaseTools::UpstreamMerge.new(
origin: ReleaseTools::Project::GitlabEe.remotes[:gitlab],
upstream: ReleaseTools::Project::GitlabCe.remotes[:gitlab],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment