Skip to content

Commit e4b5782

Browse files
authored
feat: Run size checks only in PRs (#2823)
1 parent fef4df5 commit e4b5782

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
@@ -31,6 +31,7 @@ jobs:
3131
name: Size Check
3232
needs: job_build
3333
runs-on: ubuntu-latest
34+
if: ${{ github.head_ref }}
3435
steps:
3536
- uses: actions/checkout@v2
3637
- uses: actions/setup-node@v1
@@ -93,6 +94,7 @@ jobs:
9394
name: BrowserStack
9495
needs: job_build
9596
runs-on: ubuntu-latest
97+
if: "'refs/heads/master' == github.ref || startsWith(github.ref, 'refs/tags/')"
9698
steps:
9799
- uses: actions/checkout@v2
98100
- uses: actions/setup-node@v1
@@ -110,7 +112,6 @@ jobs:
110112
env:
111113
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
112114
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
113-
if: "'refs/heads/master' == github.ref || startsWith(github.ref, 'refs/tags/')"
114115
run: |
115116
cd packages/browser
116117
yarn test:integration:checkbrowsers

0 commit comments

Comments
 (0)