Skip to content

Commit

Permalink
Only run benchmarks on labeled PRs (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrjones authored Mar 13, 2024
1 parent b6c5f4f commit 0c1c734
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/codspeed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ on:
- "main"
# Run on pull requests
pull_request:
# `workflow_dispatch` allows CodSpeed to trigger backtest
# performance analysis in order to generate initial data.
workflow_dispatch:
types: [labeled]

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

0 comments on commit 0c1c734

Please sign in to comment.