Skip to content

Run clang-format Linter #391

Run clang-format Linter

Run clang-format Linter #391

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 }}