Skip to content

Commit

Permalink
ci: Ensure we can actually run size-limit for release branches (#7214)
Browse files Browse the repository at this point in the history
Based on getsentry/size-limit-action#8, this ensures we can actually run size-limit on release branches, which currently fails.
  • Loading branch information
mydea committed Feb 17, 2023
1 parent afffdac commit 82db382
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,14 @@ jobs:
path: ${{ env.CACHED_BUILD_PATHS }}
key: ${{ env.BUILD_CACHE_KEY }}
- name: Check bundle sizes
uses: getsentry/size-limit-action@main-skip-step
uses: getsentry/size-limit-action@runForBranch
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
skip_step: build
main_branch: develop
# When on release branch, we want to always run
# Else, we fall back to the default handling of the action
run_for_branch: ${{ (needs.job_get_metadata.outputs.is_release == 'true' && 'true') || '' }}

job_lint:
name: Lint
Expand Down

0 comments on commit 82db382

Please sign in to comment.