Skip to content

Commit

Permalink
ci: avoid duplicated ci runs on self-repo pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Mar 27, 2023
1 parent d77557c commit ea5bf12
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/ci.yml
Expand Up @@ -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

This comment has been minimized.

Copy link
@yyx990803

yyx990803 Mar 27, 2023

Author Member

Courtesy of ChatGPT 馃槀

steps:
- uses: actions/checkout@v3

Expand All @@ -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

Expand All @@ -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

Expand All @@ -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:
Expand All @@ -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

0 comments on commit ea5bf12

Please sign in to comment.