File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 12
12
paths :
13
13
- ' pygmt/**/*.py'
14
14
- ' .github/workflows/benchmarks.yml'
15
- # Uncomment the 'pull_request' line below to trigger the workflow in PR
16
- # pull_request:
15
+ # Run in PRs but only if the PR has the 'run/benchmark' label
16
+ pull_request :
17
+ types : [ opened, reopened, labeled, synchronize ]
17
18
# `workflow_dispatch` allows CodSpeed to trigger backtest
18
19
# performance analysis in order to generate initial data.
19
20
workflow_dispatch :
@@ -28,7 +29,7 @@ concurrency:
28
29
jobs :
29
30
benchmarks :
30
31
runs-on : ubuntu-22.04
31
- if : github.repository == 'GenericMappingTools/pygmt'
32
+ if : github.repository == 'GenericMappingTools/pygmt' && (github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run/benchmark'))
32
33
defaults :
33
34
run :
34
35
shell : bash -l {0}
You can’t perform that action at this time.
0 commit comments