ci: ensure we always use the latest patch version of golang (#3350)
Signed-off-by: Jan Larwig <jan@larwig.com>
This commit is contained in:
parent
06f1234b69
commit
788f3d0e1d
|
|
@ -22,7 +22,7 @@ jobs:
|
|||
|
||||
- name: Get Go version
|
||||
run: |
|
||||
version=$(grep "^go " go.mod | cut -d' ' -f2)
|
||||
version=$(grep "^go " go.mod | cut -d' ' -f2 | cut -d. -f1,2)
|
||||
echo "version=${version}" >> "$GITHUB_OUTPUT"
|
||||
id: go-version
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ jobs:
|
|||
|
||||
- name: Get Go version
|
||||
run: |
|
||||
version=$(grep "^go " go.mod | cut -d' ' -f2)
|
||||
version=$(grep "^go " go.mod | cut -d' ' -f2 | cut -d. -f1,2)
|
||||
echo "version=${version}" >> "$GITHUB_OUTPUT"
|
||||
id: go-version
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue