From 1d24e9419c33f2410d2b154469b3717519829418 Mon Sep 17 00:00:00 2001 From: ned1313 Date: Wed, 12 Jun 2024 10:01:05 -0400 Subject: [PATCH] get go version from go.mod file --- .github/workflows/go-build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go-build.yml b/.github/workflows/go-build.yml index d7b9b8b..be0cf14 100644 --- a/.github/workflows/go-build.yml +++ b/.github/workflows/go-build.yml @@ -19,7 +19,8 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.22' + go-version-file: 'go.mod' + check-latest: true - name: Build run: go build -v ./...