diff --git a/.github/workflows/lint_pr.yml b/.github/workflows/lint_pr.yml index 559a626c..0d04c0dd 100644 --- a/.github/workflows/lint_pr.yml +++ b/.github/workflows/lint_pr.yml @@ -1,12 +1,16 @@ name: lint_pr + on: [push, pull_request] + jobs: clang-format: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: DoozyX/clang-format-lint-action@v0.12 - with: - source: 'src' - exclude: 'lib' - clangFormatVersion: 12 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: DoozyX/clang-format-lint-action@v0.18.1 + with: + source: src + exclude: lib + clangFormatVersion: 12