@@ -61,6 +61,12 @@ def SetupArguments():
61
61
default = 'master' ,
62
62
help = 'Base branch for new release' )
63
63
64
+ parser .add_argument (
65
+ '--push_only' ,
66
+ dest = 'push_only' ,
67
+ action = 'store_true' ,
68
+ help = 'Skip all of script except pushing podspecs to cpdc_internal' )
69
+
64
70
args = parser .parse_args ()
65
71
return args
66
72
@@ -224,6 +230,7 @@ def UpdateVersions():
224
230
global test_mode
225
231
args = SetupArguments ()
226
232
test_mode = args .test_mode
233
+
227
234
# Validate version is proper format
228
235
major , minor , patch = args .version .split ('.' )
229
236
if (not major .isdigit ()) or (not minor .isdigit ()) or (not patch .isdigit ()):
@@ -234,20 +241,23 @@ def UpdateVersions():
234
241
stdout = subprocess .PIPE ).communicate ()[0 ].rstrip ().decode ('utf-8' )
235
242
236
243
version_data = GetVersionData (git_root , args .version )
237
- if args .tag_update :
238
- UpdateTags (version_data , args .version )
239
- return
240
-
241
- release_branch = 'release-{}' .format (args .version )
242
- CreateReleaseBranch (release_branch , args .base_branch )
243
- UpdateFIROptions (git_root , version_data )
244
- UpdatePodSpecs (git_root , version_data , args .version )
245
- UpdatePodfiles (git_root , args .version )
246
-
247
- LogOrRun ('git commit -am "Update versions for Release {}"'
248
- .format (args .version ))
249
- LogOrRun ('git push origin {}' .format (release_branch ))
250
- UpdateTags (version_data , args .version , True )
244
+
245
+ if not args .push_only :
246
+ if args .tag_update :
247
+ UpdateTags (version_data , args .version )
248
+ return
249
+
250
+ release_branch = 'release-{}' .format (args .version )
251
+ CreateReleaseBranch (release_branch , args .base_branch )
252
+ UpdateFIROptions (git_root , version_data )
253
+ UpdatePodSpecs (git_root , version_data , args .version )
254
+ UpdatePodfiles (git_root , args .version )
255
+
256
+ LogOrRun ('git commit -am "Update versions for Release {}"'
257
+ .format (args .version ))
258
+ LogOrRun ('git push origin {}' .format (release_branch ))
259
+ UpdateTags (version_data , args .version , True )
260
+
251
261
PushPodspecs (version_data )
252
262
253
263
0 commit comments