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