From 64e9b432cc4dfc056eb27752fbab550e50948fad Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Wed, 30 Nov 2022 10:58:14 +0000 Subject: [PATCH] actions: use go-version-file: .go-version see https://github.com/actions/setup-go/pull/295 --- .github/workflows/golangci-lint.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index bdbc22edc..b8104fb65 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -26,16 +26,11 @@ jobs: GOOS: ${{ matrix.GOOS }} run: echo Go GOOS=$GOOS - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - # Uses Go version from the repository. - - name: Read .go-version file - id: goversion - run: echo "::set-output name=version::$(cat .go-version)" - - - uses: actions/setup-go@v2 + - uses: actions/setup-go@v3 with: - go-version: "${{ steps.goversion.outputs.version }}" + go-version-file: .go-version - name: golangci-lint env: