ci: ensure we always use the latest patch version of golang (#3350)
Signed-off-by: Jan Larwig <jan@larwig.com>
commit788f3d0e1df540d945a3ffe0e95d432baf1387c3
authorJan Larwig <jan@larwig.com>
dateThu 26 Feb 2026, 14:48 (7 months ago)
parent06f1234
.github/workflows/ci.yml+1−1
@@ -22,7 +22,7 @@ jobs:
2222
2323 - name: Get Go version
2424 run: |
25− version=$(grep "^go " go.mod | cut -d' ' -f2)
25+ version=$(grep "^go " go.mod | cut -d' ' -f2 | cut -d. -f1,2)
2626 echo "version=${version}" >> "$GITHUB_OUTPUT"
2727 id: go-version
2828
.github/workflows/publish-release.yml+1−1
@@ -45,7 +45,7 @@ jobs:
4545
4646 - name: Get Go version
4747 run: |
48− version=$(grep "^go " go.mod | cut -d' ' -f2)
48+ version=$(grep "^go " go.mod | cut -d' ' -f2 | cut -d. -f1,2)
4949 echo "version=${version}" >> "$GITHUB_OUTPUT"
5050 id: go-version
5151