File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -812,7 +812,7 @@ private_lane :frameworks_sizes do
812812 }
813813end
814814
815- desc "Updates WebRTC dependency locally. Usage: `bundle exec fastlane update_stream_chat version:125.6422.070`"
815+ desc "Updates WebRTC dependency locally. Usage: `bundle exec fastlane update_stream_chat version:125.6422.070 skip_pr:true `"
816816lane :update_webrtc do |options |
817817 raise UI . user_error! ( 'Provide a version.' ) unless options [ :version ]
818818
@@ -834,12 +834,18 @@ lane :update_webrtc do |options|
834834 end
835835 end
836836
837- pr_create (
838- title : "Update WebRTC dependency to #{ options [ :version ] } " ,
839- base_branch : 'develop' ,
840- head_branch : "ci/update-webrtc-dependency-#{ Time . now . to_i } " ,
841- github_repo : github_repo
842- )
837+ skip_pr = %w[ true 1 ] . include? ( options [ :skip_pr ] . to_s . downcase )
838+
839+ if skip_pr
840+ UI . message ( 'Skipping PR creation as requested.' )
841+ else
842+ pr_create (
843+ title : "Update WebRTC dependency to #{ options [ :version ] } " ,
844+ base_branch : 'develop' ,
845+ head_branch : "ci/update-webrtc-dependency-#{ Time . now . to_i } " ,
846+ github_repo : github_repo
847+ )
848+ end
843849end
844850
845851lane :size_analyze do
You can’t perform that action at this time.
0 commit comments