Skip to content

Commit 31b494b

Browse files
authored
ci: fix filter for benchmark pushes on branch (#2834)
1 parent 75485dc commit 31b494b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/benchmark.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@ jobs:
2323
# runners on arbitrary PRs, and we don't want to unleash that load on the pool anyway.
2424
# If we're running on main, use the OTEL self-hosted runner pool.
2525
runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-latest' || 'self-hosted' }}
26-
if: |
27-
${{
28-
github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'performance') ||
29-
github.event_name == 'push'
30-
}}
26+
if: ${{ (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'performance')) || github.event_name == 'push' }}
3127
env:
3228
# For PRs, compare against the base branch - e.g., 'main'.
3329
# For pushes to main, compare against the previous commit

0 commit comments

Comments
 (0)