Skip to content

Commit 310541f

Browse files
authored
[7.17](backport #2142) actions: use go-version-file: .go-version (#2143)
1 parent 6b4294b commit 310541f

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,11 @@ jobs:
1515
name: lint
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v3
1919

20-
# Uses Go version from the repository.
21-
- name: Read .go-version file
22-
id: goversion
23-
run: echo "::set-output name=version::$(cat .go-version)"
24-
25-
- uses: actions/setup-go@v2
20+
- uses: actions/setup-go@v3
2621
with:
27-
go-version: "${{ steps.goversion.outputs.version }}"
22+
go-version-file: .go-version
2823

2924
- name: golangci-lint
3025
uses: golangci/golangci-lint-action@v2

0 commit comments

Comments
 (0)