Skip to content

Commit 0f10bc3

Browse files
committed
chore: get go version from go.mod
This avoids needing to update the go version in multiple places.
1 parent 371c146 commit 0f10bc3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/main.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ jobs:
1414
- name: Set up go
1515
uses: actions/setup-go@v5
1616
with:
17-
go-version: '1.22'
18-
stable: true
17+
go-version-file: 'go.mod'
1918

2019
- uses: actions/checkout@v2
2120

@@ -29,8 +28,7 @@ jobs:
2928
- name: Set up go
3029
uses: actions/setup-go@v5
3130
with:
32-
go-version: '1.22'
33-
stable: true
31+
go-version-file: 'go.mod'
3432

3533
- uses: actions/checkout@v2
3634

@@ -44,7 +42,7 @@ jobs:
4442
- uses: actions/checkout@v1
4543
- uses: actions/setup-go@v5
4644
with:
47-
go-version: '1.22'
45+
go-version-file: 'go.mod'
4846
- name: Install latest version of Kind
4947
run: |
5048
go get sigs.k8s.io/kind

0 commit comments

Comments
 (0)