File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 55 branches :
66 - " main"
77 pull_request :
8+ types : [labeled, synchronize]
89 # `workflow_dispatch` allows CodSpeed to trigger backtest
910 # performance analysis in order to generate initial data.
1011 workflow_dispatch :
1617 benchmarks :
1718 name : Run benchmarks
1819 runs-on : codspeed-macro
20+ # Only run benchmarks for: pushes to main, manual triggers, or PRs with 'benchmark' label
21+ if : |
22+ github.event_name == 'push' ||
23+ github.event_name == 'workflow_dispatch' ||
24+ (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'benchmark'))
1925 steps :
2026 - uses : actions/checkout@v6
2127 with :
Original file line number Diff line number Diff line change 1+ Benchmark CI now only runs for PRs with the ` benchmark ` label, reducing CodSpeed credit usage.
You can’t perform that action at this time.
0 commit comments