diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 2a69022a367..c5fcc0e7c91 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -19,7 +19,13 @@ jobs: bin/golangci-lint bin/custom-gcl key: ${{ runner.os }}-${{ runner.arch }}-tools-${{ hashFiles('.custom-gcl.yml', 'tools/**/go.mod', 'tools/**/go.sum', 'tools/**/*.go') }} + - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 + with: + path: ~/.cache/golangci-lint + key: ${{ runner.os }}-${{ runner.arch }}-golangci-${{ github.run_id }} + restore-keys: | + ${{ runner.os }}-${{ runner.arch }}-golangci- - run: script/lint.sh env: CHECK_GITHUB_OPENAPI: 1 - GITHUB_TOKEN: ${{ github.token }} + GITHUB_TOKEN: ${{ github.token }} \ No newline at end of file