Skip to content

Commit 23feff7

Browse files
author
Takashi Kusumi
authored
Make setup-go get Go version from go.mod (#253)
1 parent 68305a0 commit 23feff7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/checkout@v3
1717
- uses: actions/setup-go@v3
1818
with:
19-
go-version: 1.19.x
19+
go-version-file: go.mod
2020
cache: true
2121
- name: Ensure go.mod is already tidied
2222
run: go mod tidy && git diff -s --exit-code go.sum

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v3
1212
- uses: actions/setup-go@v3
1313
with:
14-
go-version: 1.19.x
14+
go-version-file: go.mod
1515
cache: true
1616
- name: Login to GitHub Container Registry
1717
uses: docker/login-action@v1

0 commit comments

Comments
 (0)