Skip to content

Commit

Permalink
try push_pod one more times
Browse files Browse the repository at this point in the history
  • Loading branch information
i.o.novikov committed May 4, 2022
1 parent 8773355 commit f785bd3
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,24 @@ lane :lint_fastfile do
end

def push_podspec(podspec_name)
pod_push(
path: podspec_name,
allow_warnings: true,
skip_tests: true
)
tries = 6
for i in 1..tries
begin
pod_push(
path: podspec_name,
allow_warnings: true,
skip_tests: true
)
break
rescue StandardError => error
if i == tries
raise
end
delay = 3**i
puts "retry pod_push after #{delay}"
sleep(delay)
end
end
end

def resolve_bump_type(options)
Expand Down

0 comments on commit f785bd3

Please sign in to comment.