Skip to content

Commit

Permalink
Merge pull request #8 from akhaman/bugfix/MIC-7325/multiple-podspecs-…
Browse files Browse the repository at this point in the history
…push

[MIC-7235] Add shell command for updating pod repo before releasing
  • Loading branch information
d-kv authored Dec 13, 2022
2 parents c6ebaf4 + ed55e6b commit 3be27ec
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,19 +91,20 @@ def push_podspec(podspec_name)
tries = 6
for i in 1..tries
begin
pod_push(
path: podspec_name,
allow_warnings: true,
skip_tests: true
)
break
sh("bundle exec pod repo update")
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)
if i == tries
raise
end
delay = 3**i
puts "retry pod_push after #{delay}"
sleep(delay)
end
end
end
Expand Down

0 comments on commit 3be27ec

Please sign in to comment.