Skip to content

Commit

Permalink
Only trigger benchmarks when added a label
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Jun 13, 2021
1 parent 12121ec commit 863e99b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/benches.yml
@@ -1,9 +1,11 @@
name: Bench
# FIXME: Run only when adding `benchmarks` label?
on: [pull_request]
on:
pull_request:
types: [labeled]

jobs:
bench_between_master_and_pr:
if: ${{ github.event.label.name == 'run-benchmarks' }}
name: Bench
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 863e99b

Please sign in to comment.