From 6a51e1bdf2b958e751be652e1bd54ac154df8705 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Wed, 30 Nov 2022 11:00:26 +0000 Subject: [PATCH] actions: use go-version-file: .go-version see https://github.com/actions/setup-go/pull/295 --- .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 b5c919e..ec5b31a 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: @@ -50,4 +45,4 @@ jobs: args: --timeout=30m --whole-files # 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