Skip to content

Commit d891ad4

Browse files
author
Julien Ruaux
committed
feat: Added branch input
1 parent 2086fc2 commit d891ad4

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/benchmark.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
name: 'Benchmark'
1+
name: Benchmark
22

33
on:
44
workflow_call:
55
inputs:
6+
branch:
7+
default: 'master'
8+
required: false
9+
type: string
610
java-version:
711
default: '19'
812
required: false
@@ -16,8 +20,8 @@ on:
1620
required: true
1721

1822
jobs:
19-
earlyaccess:
20-
name: 'Benchmark'
23+
benchmark:
24+
name: Benchmark
2125
runs-on: ubuntu-latest
2226
steps:
2327
- name: Cancel previous run
@@ -28,6 +32,7 @@ jobs:
2832
- name: Checkout
2933
uses: actions/checkout@v3
3034
with:
35+
ref: ${{ inputs.branch }}
3136
fetch-depth: 0
3237

3338
- name: Set up Java

0 commit comments

Comments
 (0)