From b49dd3363fb8b8748ea635b6c7e72fe718a74373 Mon Sep 17 00:00:00 2001 From: "Hsing-Yu (David) Chen" Date: Tue, 7 Mar 2023 16:56:15 -0800 Subject: [PATCH] ci: use the Go version in go.mod instead of a hard-coded one Signed-off-by: Hsing-Yu (David) Chen --- .github/workflows/release-installer.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-installer.yaml b/.github/workflows/release-installer.yaml index 8a81606fa..03627de4f 100644 --- a/.github/workflows/release-installer.yaml +++ b/.github/workflows/release-installer.yaml @@ -41,7 +41,8 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: 1.19.x + go-version-file: go.mod + cache: true - uses: actions/checkout@v3 - name: Clean up previous files run: | @@ -88,7 +89,8 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: 1.19.x + go-version-file: go.mod + cache: true - uses: actions/checkout@v3 - name: Clean up previous files run: |