Skip to content

Commit

Permalink
Merge pull request #5 from tinkoff-mobile-tech/try_pod_push
Browse files Browse the repository at this point in the history
try push_pod one more times
  • Loading branch information
Nov1kov authored May 6, 2022
2 parents 8773355 + f785bd3 commit ba8f0a4
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 ba8f0a4

Please sign in to comment.