Skip to content

Commit 81c45d7

Browse files
authored
chore(ci): update ci-tests.yaml and create-release-draft.yaml to use go version from go.mod (#1139)
Signed-off-by: Christopher Coco <[email protected]>
1 parent f6239f9 commit 81c45d7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/ci-tests.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup Golang
1919
uses: actions/setup-go@v5
2020
with:
21-
go-version: '1.23'
21+
go-version-file: go.mod
2222
- name: Download all Go modules
2323
run: |
2424
go mod download
@@ -62,7 +62,7 @@ jobs:
6262
- name: Setup Golang
6363
uses: actions/setup-go@v5
6464
with:
65-
go-version: '1.23'
65+
go-version-file: go.mod
6666
cache: false
6767
env:
6868
GO111MODULE: off
@@ -80,7 +80,7 @@ jobs:
8080
- name: Setup Golang
8181
uses: actions/setup-go@v5
8282
with:
83-
go-version: '1.23'
83+
go-version-file: go.mod
8484
- name: Run tests
8585
env:
8686
GNUPG_DISABLED: true
@@ -127,7 +127,7 @@ jobs:
127127
- name: Setup Golang
128128
uses: actions/setup-go@v5
129129
with:
130-
go-version: '1.23'
130+
go-version-file: go.mod
131131
- name: Download all Go modules
132132
run: |
133133
cd registry-scanner

.github/workflows/create-release-draft.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Setup Golang
2525
uses: actions/setup-go@v5
2626
with:
27-
go-version: '1.23'
27+
go-version-file: go.mod
2828

2929
- name: Build binaries
3030
id: binaries

0 commit comments

Comments
 (0)