Skip to content

Commit 95c0e0b

Browse files
author
sevastian.zhukov
committed
Distribute versions with repeats
1 parent 6b31415 commit 95c0e0b

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.circleci/config.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -694,9 +694,7 @@ jobs:
694694
- install-mbx-ci
695695
- run:
696696
name: Update version
697-
command: |
698-
pod repo update && pod trunk push MapboxCoreNavigation.podspec
699-
pod repo update && pod trunk push MapboxNavigation.podspec
697+
command: python3 scripts/distribute-version.py
700698
- *save-cache-podmaster
701699
- *save-cache-gems
702700

scripts/distribute-version.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import subprocess
2+
import time
3+
4+
5+
def push_pod(name):
6+
while True:
7+
status = subprocess.run('pod repo update && pod trunk push ' + name + '.podspec', shell=True)
8+
if status.returncode == 0:
9+
break
10+
time.sleep(10)
11+
12+
13+
push_pod('MapboxCoreNavigation')
14+
push_pod('MapboxNavigation')

0 commit comments

Comments
 (0)