Skip to content

Commit 7c5f113

Browse files
mergify[bot]v1v
andauthored
actions: use go-version-file: .go-version (#2142) (#2145)
see actions/setup-go#295 (cherry picked from commit cf5c762) Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com>
1 parent 6cfa5f5 commit 7c5f113

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
@@ -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)