chore(ci): Skip benchmark for forks (#6489)

This commit is contained in:
OJ Kwon 2022-11-20 20:17:02 -08:00 committed by GitHub
parent c6d33b3c58
commit 78af96e507
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,11 @@
name: Benchmark
on:
- push
- pull_request
pull_request:
types: ['opened', 'reopened', 'synchronize']
push:
branches:
- main
env:
RUST_LOG: "off"
@ -11,7 +14,7 @@ jobs:
binary-size:
name: Binary size
if: >-
${{ !contains(github.event.head_commit.message, 'chore: ') }}
${{ !contains(github.event.head_commit.message, 'chore: ') && github.repository_owner == 'swc-project' }}
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
@ -40,7 +43,7 @@ jobs:
benchmark:
name: Performance regression check
if: >-
${{ !contains(github.event.head_commit.message, 'chore: ') }}
${{ !contains(github.event.head_commit.message, 'chore: ') && github.repository_owner == 'swc-project' }}
runs-on: macos-latest
steps:
- uses: actions/checkout@v3