From 26cbf8487544c921be8bb991012156dcaafa714c Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 30 Nov 2022 15:32:45 +0000 Subject: [PATCH] actions: use go-version-file: .go-version (#193) (#194) see https://github.com/actions/setup-go/pull/295 (cherry picked from commit d0393ab5ee132ed1fa8671e9ee7ffebd205cc60f) Co-authored-by: Victor Martinez --- .github/workflows/golangci-lint.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 027884d..1a5e5a6 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -23,14 +23,9 @@ jobs: - 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@v3 with: - go-version: "${{ steps.goversion.outputs.version }}" + go-version-file: .go-version - name: golangci-lint env: @@ -53,4 +48,4 @@ jobs: skip-go-installation: true # Optional: show only new issues if it's a pull request. The default value is `false`. - only-new-issues: true \ No newline at end of file + only-new-issues: true