Skip to content

Commit

Permalink
Use the Golang version from go.mod in CI and Release workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
gesellix committed May 19, 2024
1 parent 3a4f445 commit d05734e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Check GoReleaser config
uses: goreleaser/goreleaser-action@v5
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ jobs:
contents: write
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Checkout
uses: actions/checkout@v4
- name: Unshallow
run: git fetch --prune --tags --unshallow -f
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Check GoReleaser config
uses: goreleaser/goreleaser-action@v5
with:
Expand Down

0 comments on commit d05734e

Please sign in to comment.