mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 22:56:11 +03:00
chore(ci): Skip benchmark for forks (#6489)
This commit is contained in:
parent
c6d33b3c58
commit
78af96e507
11
.github/workflows/bench.yml
vendored
11
.github/workflows/bench.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user