From ff6ee25d23f1d8abf71d092998c0cc13d933a908 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Fri, 2 Aug 2024 22:12:28 -0400 Subject: [PATCH] ci: update workflows to use go.mod instead of specifying go version (#4286) Signed-off-by: Rui Chen --- .github/workflows/go.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index bdcd1f907..5e805eda0 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -17,7 +17,7 @@ jobs: - name: Set up Go 1.x uses: actions/setup-go@v5 with: - go-version: '1.20' + go-version-file: go.mod check-latest: true cache: true id: go @@ -53,7 +53,7 @@ jobs: uses: actions/setup-go@v5 with: # use 1.20 to guarantee Go 1.20 compatibility - go-version: '1.20' + go-version-file: go.mod check-latest: true cache: true