diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index 93ca2da4c..cfd8a8728 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -8,17 +8,17 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: DoozyX/clang-format-lint-action@v0.17 + - - uses: DoozyX/clang-format-lint-action@v0.16.2 with: source: '.' - exclude: './third_party ./external' - extensions: 'h,cpp' - clangFormatVersion: 17 - style: google - - name: Commit changes - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git add . - git commit -m "Automatically formatted code with clang-format" - git push \ No newline at end of file + exclude: './lib' + extensions: 'h,cpp,c' + clangFormatVersion: 16 + inplace: True + - uses: EndBug/add-and-commit@v9 + with: + author_name: Clang Robot + author_email: robot@example.com + message: 'Committing clang-format changes' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file