Skip to content

Commit 3ed1967

Browse files
v1vmergify[bot]
authored andcommitted
actions: use go-version-file: .go-version (#2142)
see actions/setup-go#295 (cherry picked from commit cf5c762) # Conflicts: # .github/workflows/golangci-lint.yml
1 parent c7a2ca5 commit 3ed1967

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,20 @@ jobs:
1515
name: lint
1616
runs-on: ubuntu-latest
1717
steps:
18+
<<<<<<< HEAD
1819
- uses: actions/checkout@v2
20+
=======
21+
- name: Echo details
22+
env:
23+
GOOS: ${{ matrix.GOOS }}
24+
run: echo Go GOOS=$GOOS
1925

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)"
26+
- uses: actions/checkout@v3
27+
>>>>>>> cf5c762 (actions: use go-version-file: .go-version (#2142))
2428

25-
- uses: actions/setup-go@v2
29+
- uses: actions/setup-go@v3
2630
with:
27-
go-version: "${{ steps.goversion.outputs.version }}"
31+
go-version-file: .go-version
2832

2933
- name: golangci-lint
3034
uses: golangci/golangci-lint-action@v2

0 commit comments

Comments
 (0)