ci: ensure we always use the latest patch version of golang (#3349)

Signed-off-by: Jan Larwig <jan@larwig.com>
This commit is contained in:
Jan Larwig
2026-02-26 14:43:52 +01:00
committed by GitHub
parent a279fece02
commit 06f1234b69
3 changed files with 19 additions and 6 deletions
+8 -2
View File
@@ -20,11 +20,17 @@ jobs:
- name: Check out code
uses: actions/checkout@v6
- name: Get Go version
run: |
version=$(grep "^go " go.mod | cut -d' ' -f2)
echo "version=${version}" >> "$GITHUB_OUTPUT"
id: go-version
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
id: go
go-version: ${{ steps.go-version.outputs.version }}
check-latest: true
- name: Install golangci-lint
env:
+10 -3
View File
@@ -42,11 +42,18 @@ jobs:
git tag -a "${version}" -m "Release ${version}"
echo "version=${version}" >> $GITHUB_OUTPUT
id: tag
- name: Set up go
- name: Get Go version
run: |
version=$(grep "^go " go.mod | cut -d' ' -f2)
echo "version=${version}" >> "$GITHUB_OUTPUT"
id: go-version
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
go-version: ${{ steps.go-version.outputs.version }}
check-latest: true
- name: Get dependencies
env: