Skip to content

Commit 0c1cf4a

Browse files
authored
Merge pull request #254 from JuliaControl/bench_cond
bench: only run bench if `benchmark` appears in label
2 parents 7a39951 + c6e0af7 commit 0c1cf4a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/benchmark.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Benchmark
22
on:
33
pull_request_target:
44
branches: [ main ]
5+
types: [labeled, opened, synchronize, reopened]
56
concurrency:
67
# Skip intermediate builds: always.
78
# Cancel intermediate builds: only if it is a pull request build.
@@ -12,6 +13,7 @@ permissions:
1213
jobs:
1314
bench:
1415
runs-on: ubuntu-latest
16+
if: ${{ contains(github.event.pull_request.labels.*.name, 'benchmark') }}
1517
steps:
1618
- uses: MilesCranmer/AirspeedVelocity.jl@action-v1
1719
with:

0 commit comments

Comments
 (0)