Skip to content

Commit 364b905

Browse files
committed
Update
1 parent c71fb4d commit 364b905

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

.github/workflows/sdk-size-metrics.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
push:
99
branches:
1010
- develop
11+
- main
1112

1213
env:
1314
HOMEBREW_NO_INSTALL_CLEANUP: 1 # Disable cleanup for homebrew, we don't need it on CI
@@ -38,11 +39,12 @@ jobs:
3839
cache: 'yarn'
3940

4041
- 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
4243
working-directory: examples/SampleApp
4344
timeout-minutes: 60
4445
env:
4546
GITHUB_PR_NUM: ${{ github.event.pull_request.number }}
4647
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
4748
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' }}

examples/SampleApp/Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ GEM
163163
google-apis-firebaseappdistribution_v1 (~> 0.3.0)
164164
google-apis-firebaseappdistribution_v1alpha (~> 0.2.0)
165165
fastlane-plugin-load_json (0.0.1)
166-
fastlane-plugin-stream_actions (0.3.47)
166+
fastlane-plugin-stream_actions (0.3.51)
167167
xctest_list (= 1.2.1)
168168
ffi (1.17.0)
169169
fourflusher (2.3.1)
@@ -320,7 +320,7 @@ DEPENDENCIES
320320
fastlane
321321
fastlane-plugin-firebase_app_distribution
322322
fastlane-plugin-load_json
323-
fastlane-plugin-stream_actions (= 0.3.47)
323+
fastlane-plugin-stream_actions (= 0.3.51)
324324
rubocop-performance
325325
rubocop-require_tools
326326

examples/SampleApp/fastlane/Fastfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -234,12 +234,15 @@ end
234234
lane :show_frameworks_sizes do |options|
235235
# FIXME: next unless is_check_required(sources: ['package/'], force_check: @force_check)
236236

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]
241240
end
242241

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+
)
245248
end

examples/SampleApp/fastlane/Pluginfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
gem 'fastlane-plugin-firebase_app_distribution'
66
gem 'fastlane-plugin-load_json'
7-
gem 'fastlane-plugin-stream_actions', '0.3.47'
7+
gem 'fastlane-plugin-stream_actions', '0.3.51'

0 commit comments

Comments
 (0)