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:
parent
a279fece02
commit
06f1234b69
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue