Skip to content

Commit b58e007

Browse files
AbhiPrasadonurtemizkan
authored andcommitted
build: Only run size limit on master or PRs (#4245)
1 parent a5ad5c4 commit b58e007

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ jobs:
116116
key: ${{ env.BUILD_CACHE_KEY }}
117117
- name: Check bundle sizes
118118
uses: getsentry/size-limit-action@v3
119-
if: github.ref != 'refs/release/**'
119+
# Only run size check on master or pull requests
120+
if: github.ref == 'refs/heads/master' || github.event_name == 'pull_request'
120121
with:
121122
github_token: ${{ secrets.GITHUB_TOKEN }}
122123
skip_step: build

0 commit comments

Comments
 (0)