Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit c927c7e

Browse files
committed
ci: tell setup-go where to check go version
Signed-off-by: Chris Privitere <[email protected]>
1 parent 43f5f2d commit c927c7e

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
with:
3030
fetch-depth: 0
3131
- uses: actions/setup-go@v4
32+
with:
33+
go-version-file: './go.mod'
3234
- uses: actions/cache@v3
3335
with:
3436
path: hack/tools/bin
@@ -56,6 +58,8 @@ jobs:
5658
- name: checkout
5759
uses: actions/checkout@v3
5860
- uses: actions/setup-go@v4
61+
with:
62+
go-version-file: './go.mod'
5963
- name: Set up QEMU
6064
uses: docker/setup-qemu-action@v2
6165
- name: Set up Docker Buildx
@@ -116,6 +120,8 @@ jobs:
116120
- name: checkout
117121
uses: actions/checkout@v3
118122
- uses: actions/setup-go@v4
123+
with:
124+
go-version-file: './go.mod'
119125
- uses: actions/cache@v3
120126
with:
121127
path: hack/tools/bin
@@ -154,6 +160,8 @@ jobs:
154160
- name: checkout
155161
uses: actions/checkout@v3
156162
- uses: actions/setup-go@v4
163+
with:
164+
go-version-file: './go.mod'
157165
- uses: actions/cache@v3
158166
with:
159167
path: hack/tools/bin
@@ -210,6 +218,8 @@ jobs:
210218
- name: checkout
211219
uses: actions/checkout@v3
212220
- uses: actions/setup-go@v4
221+
with:
222+
go-version-file: './go.mod'
213223
- uses: actions/cache@v3
214224
with:
215225
path: hack/tools/bin
@@ -266,6 +276,8 @@ jobs:
266276
- name: checkout
267277
uses: actions/checkout@v3
268278
- uses: actions/setup-go@v4
279+
with:
280+
go-version-file: './go.mod'
269281
- uses: actions/cache@v3
270282
with:
271283
path: hack/tools/bin
@@ -322,6 +334,8 @@ jobs:
322334
- name: checkout
323335
uses: actions/checkout@v3
324336
- uses: actions/setup-go@v4
337+
with:
338+
go-version-file: './go.mod'
325339
- uses: actions/cache@v3
326340
with:
327341
path: hack/tools/bin
@@ -378,6 +392,8 @@ jobs:
378392
- name: checkout
379393
uses: actions/checkout@v3
380394
- uses: actions/setup-go@v4
395+
with:
396+
go-version-file: './go.mod'
381397
- uses: actions/cache@v3
382398
with:
383399
path: hack/tools/bin

.github/workflows/cleanup.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
- name: checkout
1111
uses: actions/checkout@v3
1212
- uses: actions/setup-go@v4
13+
with:
14+
go-version-file: './go.mod'
1315
- name: Run the cleanup tool
1416
run: go run ./cmd/ci-clean
1517
env:

.github/workflows/pr.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
with:
1717
fetch-depth: 0
1818
- uses: actions/setup-go@v4
19+
with:
20+
go-version-file: './go.mod'
1921
- uses: actions/cache@v3
2022
with:
2123
path: hack/tools/bin

.github/workflows/release.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
with:
2323
fetch-depth: 0
2424
- uses: actions/setup-go@v4
25+
with:
26+
go-version-file: './go.mod'
2527
- name: Set up QEMU
2628
uses: docker/setup-qemu-action@v2
2729
- name: Set up Docker Buildx
@@ -91,6 +93,8 @@ jobs:
9193
- name: Checkout code
9294
uses: actions/checkout@v3
9395
- uses: actions/setup-go@v4
96+
with:
97+
go-version-file: './go.mod'
9498
- uses: actions/cache@v3
9599
with:
96100
path: hack/tools/bin

0 commit comments

Comments
 (0)