Run clang-format Linter #401
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run clang-format Linter | |
# run it every day at midnight, or manually | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
jobs: | |
run_clang_format_linter: | |
if: github.repository == 'cnr-isti-vclab/vclib' | |
name: Run clang-format Linter | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DoozyX/[email protected] | |
with: | |
source: '.' | |
exclude: './vclib/*/3rdparty ./vclib/*/scripts' | |
extensions: 'h,cpp' | |
clangFormatVersion: 18 | |
inplace: True | |
- uses: EndBug/add-and-commit@v9 | |
with: | |
committer_name: GitHub Actions | |
committer_email: [email protected] | |
message: '[clang-format] Committing clang-format changes' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |