Skip to content

Commit

Permalink
Don't run benchmarks from fork (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
christiangnrd authored Nov 30, 2024
1 parent 3ec440f commit 8c704d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ steps:
os: "macos"
arch: "aarch64"
if: |
build.message =~ /\[only benchmarks\]/ ||
!build.pull_request.repository.fork &&
(build.message =~ /\[only benchmarks\]/ ||
build.message !~ /\[only/ && !build.pull_request.draft &&
build.message !~ /\[skip benchmarks\]/
build.message !~ /\[skip benchmarks\]/)
timeout_in_minutes: 30
2 changes: 1 addition & 1 deletion .github/workflows/Benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ on:

jobs:
benchmark:
if: ${{ contains(github.event.head_commit.message, '[only benchmarks]') || !contains(github.event.head_commit.message, '[only') && !contains(github.event.head_commit.message, '[skip benchmarks]') && github.event.pull_request.draft == false }}
if: ${{ (github.event.pull_request.head.repo.full_name == github.repository) && (contains(github.event.head_commit.message, '[only benchmarks]') || !contains(github.event.head_commit.message, '[only') && !contains(github.event.head_commit.message, '[skip benchmarks]') && github.event.pull_request.draft == false) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 8c704d5

Please sign in to comment.