File tree Expand file tree Collapse file tree 4 files changed +16
-11
lines changed Expand file tree Collapse file tree 4 files changed +16
-11
lines changed Original file line number Diff line number Diff line change 8
8
push :
9
9
branches :
10
10
- develop
11
+ - main
11
12
12
13
env :
13
14
HOMEBREW_NO_INSTALL_CLEANUP : 1 # Disable cleanup for homebrew, we don't need it on CI
@@ -38,11 +39,12 @@ jobs:
38
39
cache : ' yarn'
39
40
40
41
- name : Run SDK Size Metrics
41
- run : bundle exec fastlane show_frameworks_sizes
42
+ run : bundle exec fastlane show_frameworks_sizes update_readme:$UPDATE_README open_pr:$UPDATE_README
42
43
working-directory : examples/SampleApp
43
44
timeout-minutes : 60
44
45
env :
45
46
GITHUB_PR_NUM : ${{ github.event.pull_request.number }}
46
47
MATCH_PASSWORD : ${{ secrets.MATCH_PASSWORD }}
47
48
APPSTORE_API_KEY : ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }}
48
- GITHUB_TOKEN : ' ${{ secrets.CI_BOT_GITHUB_TOKEN }}'
49
+ GITHUB_TOKEN : ${{ secrets.CI_BOT_GITHUB_TOKEN }}
50
+ UPDATE_README : ${{ github.ref == 'refs/heads/main' }}
Original file line number Diff line number Diff line change 163
163
google-apis-firebaseappdistribution_v1 (~> 0.3.0 )
164
164
google-apis-firebaseappdistribution_v1alpha (~> 0.2.0 )
165
165
fastlane-plugin-load_json (0.0.1 )
166
- fastlane-plugin-stream_actions (0.3.47 )
166
+ fastlane-plugin-stream_actions (0.3.51 )
167
167
xctest_list (= 1.2.1 )
168
168
ffi (1.17.0 )
169
169
fourflusher (2.3.1 )
@@ -320,7 +320,7 @@ DEPENDENCIES
320
320
fastlane
321
321
fastlane-plugin-firebase_app_distribution
322
322
fastlane-plugin-load_json
323
- fastlane-plugin-stream_actions (= 0.3.47 )
323
+ fastlane-plugin-stream_actions (= 0.3.51 )
324
324
rubocop-performance
325
325
rubocop-require_tools
326
326
Original file line number Diff line number Diff line change @@ -234,12 +234,15 @@ end
234
234
lane :show_frameworks_sizes do |options |
235
235
# FIXME: next unless is_check_required(sources: ['package/'], force_check: @force_check)
236
236
237
- show_sdk_size (
238
- branch_sizes : options [ :sizes ] || frameworks_sizes ,
239
- github_repo : github_repo
240
- )
237
+ sizes = options [ :sizes ] || frameworks_sizes
238
+ show_sdk_size ( branch_sizes : sizes , github_repo : github_repo )
239
+ update_img_shields_sdk_sizes ( sizes : sizes , open_pr : options [ :open_pr ] ) if options [ :update_readme ]
241
240
end
242
241
243
- lane :update_img_shields_sdk_sizes do
244
- update_sdk_size_in_readme ( readme_path : '../../../README.md' , sizes : frameworks_sizes )
242
+ lane :update_img_shields_sdk_sizes do |options |
243
+ update_sdk_size_in_readme (
244
+ readme_path : '../../README.md' ,
245
+ open_pr : options [ :open_pr ] || false ,
246
+ sizes : options [ :sizes ] || frameworks_sizes
247
+ )
245
248
end
Original file line number Diff line number Diff line change 4
4
5
5
gem 'fastlane-plugin-firebase_app_distribution'
6
6
gem 'fastlane-plugin-load_json'
7
- gem 'fastlane-plugin-stream_actions', '0.3.47 '
7
+ gem 'fastlane-plugin-stream_actions', '0.3.51 '
You can’t perform that action at this time.
0 commit comments