diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index b5c919e..ec5b31a 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -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: @@ -50,4 +45,4 @@ jobs: args: --timeout=30m --whole-files # Optional: show only new issues if it's a pull request. The default value is `false`. - only-new-issues: true \ No newline at end of file + only-new-issues: true