Skip to content

Commit ea5bf12

Browse files
committed
ci: avoid duplicated ci runs on self-repo pull requests
1 parent d77557c commit ea5bf12

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/ci.yml

+4-7
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ permissions:
1313
jobs:
1414
unit-test:
1515
runs-on: ubuntu-latest
16+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
1617
steps:
1718
- uses: actions/checkout@v3
1819

@@ -32,6 +33,7 @@ jobs:
3233

3334
e2e-test:
3435
runs-on: ubuntu-latest
36+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
3537
steps:
3638
- uses: actions/checkout@v3
3739

@@ -57,6 +59,7 @@ jobs:
5759

5860
lint-and-test-dts:
5961
runs-on: ubuntu-latest
62+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
6063
steps:
6164
- uses: actions/checkout@v3
6265

@@ -82,6 +85,7 @@ jobs:
8285

8386
size:
8487
runs-on: ubuntu-latest
88+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
8589
env:
8690
CI_JOB_NUMBER: 1
8791
steps:
@@ -98,10 +102,3 @@ jobs:
98102

99103
- run: PUPPETEER_SKIP_DOWNLOAD=1 pnpm install
100104
- run: pnpm run size
101-
102-
# - name: Check build size
103-
# uses: posva/[email protected]
104-
# with:
105-
# github_token: ${{ secrets.GITHUB_TOKEN }}
106-
# build_script: size
107-
# files: packages/vue/dist/vue.global.prod.js packages/runtime-dom/dist/runtime-dom.global.prod.js packages/size-check/dist/index.js

0 commit comments

Comments
 (0)