Skip to content

Commit 52ce1aa

Browse files
authored
fix bm invoker (#322)
* added if to the bm invoker * added label name
1 parent 627b198 commit 52ce1aa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/benchmark-labeled.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ on: # TODO: delete this file when specifying a label is supported
99
- '*noci'
1010

1111
jobs:
12+
check:
13+
name: check if label '${{ github.event.label.name }}' triggers benchmarks
14+
runs-on: ubuntu-latest
15+
steps:
16+
- id: print
17+
run: echo ${{ github.event.label.name }}
1218
bm_invoker:
19+
needs: check
20+
if: startsWith(github.event.label.name, 'bm') || startsWith(github.event.label.name, 'benchmarks')
1321
uses: ./.github/workflows/benchmark.yml
1422
secrets: inherit

0 commit comments

Comments
 (0)