Skip to content

Commit

Permalink
Only Run Benchmarks Workflow When Owner is tardis-sn (#2598)
Browse files Browse the repository at this point in the history
* Only run benchmarks workflow when owner is tardis sn

* Turn OR to AND
  • Loading branch information
atharva-2001 authored May 2, 2024
1 parent 9b75d3d commit ea5a1bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ea5a1bf

Please sign in to comment.