Skip to content

Commit

Permalink
[7.17](backport #2142) actions: use go-version-file: .go-version (#2143)
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Jan 17, 2023
1 parent 6b4294b commit 310541f
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,11 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- 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
uses: golangci/golangci-lint-action@v2
Expand Down

0 comments on commit 310541f

Please sign in to comment.