Skip to content

Commit 82db382

Browse files
authored
ci: Ensure we can actually run size-limit for release branches (#7214)
Based on getsentry/size-limit-action#8, this ensures we can actually run size-limit on release branches, which currently fails.
1 parent afffdac commit 82db382

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,11 +298,14 @@ jobs:
298298
path: ${{ env.CACHED_BUILD_PATHS }}
299299
key: ${{ env.BUILD_CACHE_KEY }}
300300
- name: Check bundle sizes
301-
uses: getsentry/size-limit-action@main-skip-step
301+
uses: getsentry/size-limit-action@runForBranch
302302
with:
303303
github_token: ${{ secrets.GITHUB_TOKEN }}
304304
skip_step: build
305305
main_branch: develop
306+
# When on release branch, we want to always run
307+
# Else, we fall back to the default handling of the action
308+
run_for_branch: ${{ (needs.job_get_metadata.outputs.is_release == 'true' && 'true') || '' }}
306309

307310
job_lint:
308311
name: Lint

0 commit comments

Comments
 (0)