Skip to content

Commit d096bea

Browse files
committed
fix(ci): use go.mod
1 parent 06b0f7b commit d096bea

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Set up Go
2626
uses: actions/setup-go@v6
2727
with:
28-
go-version: "stable"
28+
go-version-file: "go.mod"
2929

3030
- name: Build
3131
run: CGO_ENABLED=0 go build -v ./...

.github/workflows/goreleaser.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
-
2121
name: Set up Go
2222
uses: actions/setup-go@v6
23+
with:
24+
go-version-file: "go.mod"
2325
-
2426
name: Install Dependencies
2527
run: |
@@ -38,4 +40,4 @@ jobs:
3840
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3941
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}
4042
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
41-
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
43+
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}

0 commit comments

Comments
 (0)