Skip to content

Commit 64e9b43

Browse files
committed
actions: use go-version-file: .go-version
see actions/setup-go#295
1 parent af0f027 commit 64e9b43

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/golangci-lint.yml

+3-8
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,11 @@ jobs:
2626
GOOS: ${{ matrix.GOOS }}
2727
run: echo Go GOOS=$GOOS
2828

29-
- uses: actions/checkout@v2
29+
- uses: actions/checkout@v3
3030

31-
# Uses Go version from the repository.
32-
- name: Read .go-version file
33-
id: goversion
34-
run: echo "::set-output name=version::$(cat .go-version)"
35-
36-
- uses: actions/setup-go@v2
31+
- uses: actions/setup-go@v3
3732
with:
38-
go-version: "${{ steps.goversion.outputs.version }}"
33+
go-version-file: .go-version
3934

4035
- name: golangci-lint
4136
env:

0 commit comments

Comments
 (0)