From ea5a1bfa3a5223d9d0e93f753e935803a73bb467 Mon Sep 17 00:00:00 2001 From: Atharva Arya <55894364+atharva-2001@users.noreply.github.com> Date: Thu, 2 May 2024 19:04:08 +0530 Subject: [PATCH] Only Run Benchmarks Workflow When Owner is `tardis-sn` (#2598) * Only run benchmarks workflow when owner is tardis sn * Turn OR to AND --- .github/workflows/benchmarks.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index 657cd972b84..126859dbc19 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -26,10 +26,11 @@ defaults: jobs: build: - if: github.event_name == 'push' || + if: github.repository_owner == 'tardis-sn' && + (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request_target' && - contains(github.event.pull_request.labels.*.name, 'benchmarks')) + contains(github.event.pull_request.labels.*.name, 'benchmarks'))) runs-on: ubuntu-latest steps: - uses: actions/checkout@v3