Skip to content

Commit bdcab75

Browse files
Allow specifying commit ref
1 parent d3ea973 commit bdcab75

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

Diff for: .github/workflows/benchmark.yml

+13-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
name: Tests
22

33
on:
4-
workflow_dispatch: {}
4+
workflow_dispatch:
5+
inputs:
6+
ref:
7+
description: Commit ref to checkout
8+
required: true
9+
default: main
10+
type: string
511

612
jobs:
713
Unit-Tests:
@@ -11,7 +17,7 @@ jobs:
1117
- uses: actions/checkout@v4
1218
with:
1319
repository: weaviate/weaviate
14-
ref: main
20+
ref: ${{ inputs.ref }}
1521
- name: Set up Go
1622
uses: actions/setup-go@v5
1723
with:
@@ -32,7 +38,7 @@ jobs:
3238
- uses: actions/checkout@v4
3339
with:
3440
repository: weaviate/weaviate
35-
ref: main
41+
ref: ${{ inputs.ref }}
3642
- name: Set up Go
3743
uses: actions/setup-go@v5
3844
with:
@@ -73,7 +79,7 @@ jobs:
7379
- uses: actions/checkout@v4
7480
with:
7581
repository: weaviate/weaviate
76-
ref: main
82+
ref: ${{ inputs.ref }}
7783
- name: Set up Go
7884
uses: actions/setup-go@v5
7985
with:
@@ -217,7 +223,7 @@ jobs:
217223
- uses: actions/checkout@v4
218224
with:
219225
repository: weaviate/weaviate
220-
ref: main
226+
ref: ${{ inputs.ref }}
221227
- name: Set up Go
222228
uses: actions/setup-go@v5
223229
with:
@@ -245,7 +251,7 @@ jobs:
245251
- uses: actions/checkout@v4
246252
with:
247253
repository: weaviate/weaviate
248-
ref: main
254+
ref: ${{ inputs.ref }}
249255
- name: Set up Go
250256
uses: actions/setup-go@v5
251257
with:
@@ -276,7 +282,7 @@ jobs:
276282
- uses: actions/checkout@v4
277283
with:
278284
repository: weaviate/weaviate
279-
ref: main
285+
ref: ${{ inputs.ref }}
280286
- name: Set up Go
281287
uses: actions/setup-go@v5
282288
with:

0 commit comments

Comments
 (0)