From 788f3d0e1df540d945a3ffe0e95d432baf1387c3 Mon Sep 17 00:00:00 2001 From: Jan Larwig Date: Thu, 26 Feb 2026 14:48:35 +0100 Subject: [PATCH] ci: ensure we always use the latest patch version of golang (#3350) Signed-off-by: Jan Larwig --- .github/workflows/ci.yml | 2 +- .github/workflows/publish-release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c9b969e..5c3a18c5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index c71266c9..f853d8de 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -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