Skip to content

Commit

Permalink
actions: use go-version-file: .go-version (#2142)
Browse files Browse the repository at this point in the history
see actions/setup-go#295

(cherry picked from commit cf5c762)
  • Loading branch information
v1v authored and mergify[bot] committed Nov 30, 2022
1 parent 6cfa5f5 commit dbdd005
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/golangci-lint.yml
Expand Up @@ -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:
Expand Down

0 comments on commit dbdd005

Please sign in to comment.