From 5ea807ecee8b52d9ced6edd37f9316b0a29ac529 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Wed, 30 Nov 2022 14:32:13 +0000 Subject: [PATCH] actions: use go-version-file: .go-version (#193) see https://github.com/actions/setup-go/pull/295 (cherry picked from commit d0393ab5ee132ed1fa8671e9ee7ffebd205cc60f) --- .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