Skip to content

Commit 4f0737a

Browse files
committed
Use go.mod for setup-go action and show version
1 parent e565b76 commit 4f0737a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
release:
1111
name: Release
12-
runs-on: ubuntu-22.04
12+
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v4
@@ -18,8 +18,10 @@ jobs:
1818
- name: Setup Go
1919
uses: actions/setup-go@v5
2020
with:
21-
go-version: '1.23'
21+
go-version-file: go.mod
2222
check-latest: true
23+
- name: Show go version
24+
run: go version
2325
- name: Release
2426
uses: goreleaser/goreleaser-action@v6
2527
with:

0 commit comments

Comments
 (0)