Skip to content

Commit 2943b3f

Browse files
committed
Don't run github actions benchmarks when buildkite benchmarks don't run
1 parent fb9b743 commit 2943b3f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/Benchmark.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ on:
2929

3030
jobs:
3131
benchmark:
32-
if: ${{ !contains(github.event.head_commit.message, '[skip benchmarks]') }}
32+
if: |
33+
${{ contains(github.event.head_commit.message, '[only benchmarks]') ||
34+
!contains(github.event.head_commit.message, '[only') &&
35+
!contains(github.event.head_commit.message, '[skip benchmarks]') &&
36+
!build.pull_request.draft }}
3337
runs-on: ubuntu-latest
3438
steps:
3539
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)