From fd73be5076730b69208553ff215f4cb18a17a7a4 Mon Sep 17 00:00:00 2001 From: Ammar Bandukwala Date: Fri, 3 Oct 2025 10:50:24 -0500 Subject: [PATCH] ci: restrict benchmark workflow to bench/ branches only MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only run benchmarks on bench/ prefixed branches or manual workflow dispatch to avoid running expensive benchmarks on all PRs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/benchmark.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 5d8d50e..64ec65d 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -2,12 +2,12 @@ name: Benchmarks on: workflow_dispatch: + push: + branches: + - 'bench/**' pull_request: - branches: [main] - paths: - - 'src/rules/**' - - 'benches/**' - - '.github/workflows/benchmark.yml' + branches: + - 'bench/**' env: CARGO_TERM_COLOR: always