Skip to content

Commit 4e4ed93

Browse files
fix: install the Go version go.mod requires when releasing (#52)
1 parent 9fb1d97 commit 4e4ed93

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Install Go
4545
uses: actions/setup-go@v7
4646
with:
47-
go-version: 1.24.x
47+
go-version-file: 'go.mod'
4848

4949
- name: Run GoReleaser
5050
if: steps.bump.outputs.new_tag != ''

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Install Go
1919
uses: actions/setup-go@v7
2020
with:
21-
go-version: 1.24.x
21+
go-version-file: 'go.mod'
2222

2323
- name: Run GoReleaser
2424
uses: goreleaser/goreleaser-action@v7

0 commit comments

Comments
 (0)