Skip to content
This repository was archived by the owner on Sep 21, 2023. It is now read-only.

Commit 5ea807e

Browse files
v1vmergify[bot]
authored andcommitted
actions: use go-version-file: .go-version (#193)
see actions/setup-go#295 (cherry picked from commit d0393ab)
1 parent e76c011 commit 5ea807e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,9 @@ jobs:
2323

2424
- uses: actions/checkout@v3
2525

26-
# Uses Go version from the repository.
27-
- name: Read .go-version file
28-
id: goversion
29-
run: echo "::set-output name=version::$(cat .go-version)"
30-
3126
- uses: actions/setup-go@v3
3227
with:
33-
go-version: "${{ steps.goversion.outputs.version }}"
28+
go-version-file: .go-version
3429

3530
- name: golangci-lint
3631
env:
@@ -53,4 +48,4 @@ jobs:
5348
skip-go-installation: true
5449

5550
# Optional: show only new issues if it's a pull request. The default value is `false`.
56-
only-new-issues: true
51+
only-new-issues: true

0 commit comments

Comments
 (0)