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

Commit

Permalink
actions: use go-version-file: .go-version (#193)
Browse files Browse the repository at this point in the history
see actions/setup-go#295

(cherry picked from commit d0393ab)
  • Loading branch information
v1v authored and mergify[bot] committed Nov 30, 2022
1 parent e76c011 commit 5ea807e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,9 @@ jobs:

- uses: actions/checkout@v3

# Uses Go version from the repository.
- name: Read .go-version file
id: goversion
run: echo "::set-output name=version::$(cat .go-version)"

- uses: actions/setup-go@v3
with:
go-version: "${{ steps.goversion.outputs.version }}"
go-version-file: .go-version

- name: golangci-lint
env:
Expand All @@ -53,4 +48,4 @@ jobs:
skip-go-installation: true

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

0 comments on commit 5ea807e

Please sign in to comment.