From: Evan You Date: Mon, 27 Mar 2023 10:32:45 +0000 (+0800) Subject: ci: avoid duplicated ci runs on self-repo pull requests X-Git-Tag: v3.3.0-alpha.6~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea5bf1235d1bd58fe1e04de1b84af033bf29d1d9;p=thirdparty%2Fvuejs%2Fcore.git ci: avoid duplicated ci runs on self-repo pull requests --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c811c0b821..d022e11cca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,7 @@ permissions: jobs: unit-test: runs-on: ubuntu-latest + if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository steps: - uses: actions/checkout@v3 @@ -32,6 +33,7 @@ jobs: e2e-test: runs-on: ubuntu-latest + if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository steps: - uses: actions/checkout@v3 @@ -57,6 +59,7 @@ jobs: lint-and-test-dts: runs-on: ubuntu-latest + if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository steps: - uses: actions/checkout@v3 @@ -82,6 +85,7 @@ jobs: size: runs-on: ubuntu-latest + if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository env: CI_JOB_NUMBER: 1 steps: @@ -98,10 +102,3 @@ jobs: - run: PUPPETEER_SKIP_DOWNLOAD=1 pnpm install - run: pnpm run size - - # - name: Check build size - # uses: posva/size-check-action@v1.1.2 - # with: - # github_token: ${{ secrets.GITHUB_TOKEN }} - # build_script: size - # files: packages/vue/dist/vue.global.prod.js packages/runtime-dom/dist/runtime-dom.global.prod.js packages/size-check/dist/index.js