From 97aaecf18449622843ac8c89231b17a4b802ad82 Mon Sep 17 00:00:00 2001 From: Ruslan Akhmadeev Date: Tue, 13 Dec 2022 13:36:22 +0300 Subject: [PATCH 1/2] Add shell command for updating pod repo before releasing --- fastlane/Fastfile | 1 + 1 file changed, 1 insertion(+) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 4542be7..e58d26d 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -91,6 +91,7 @@ def push_podspec(podspec_name) tries = 6 for i in 1..tries begin + sh("bundle exec pod repo update") pod_push( path: podspec_name, allow_warnings: true, From ed55e6bb4a27565abc531781605d5eb2c8270ccb Mon Sep 17 00:00:00 2001 From: Ruslan Akhmadeev Date: Tue, 13 Dec 2022 16:20:18 +0300 Subject: [PATCH 2/2] Fix indents in push_podspec def --- fastlane/Fastfile | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index e58d26d..57d5ef4 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -91,20 +91,20 @@ def push_podspec(podspec_name) tries = 6 for i in 1..tries begin - sh("bundle exec pod repo update") - 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