From c6e0af77e9c86d11b6ad5664dea53acf1848efb2 Mon Sep 17 00:00:00 2001 From: franckgaga Date: Tue, 16 Sep 2025 17:52:04 -0400 Subject: [PATCH] bench: only run bench if `benchmark` appears in label --- .github/workflows/benchmark.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 3c3f1dc1d..f244a4726 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -2,6 +2,7 @@ name: Benchmark on: pull_request_target: branches: [ main ] + types: [labeled, opened, synchronize, reopened] concurrency: # Skip intermediate builds: always. # Cancel intermediate builds: only if it is a pull request build. @@ -12,6 +13,7 @@ permissions: jobs: bench: runs-on: ubuntu-latest + if: ${{ contains(github.event.pull_request.labels.*.name, 'benchmark') }} steps: - uses: MilesCranmer/AirspeedVelocity.jl@action-v1 with: