Skip to content

Run clang-format Linter #20

Run clang-format Linter

Run clang-format Linter #20

Workflow file for this run

name: Run clang-format Linter
on:
# push:
# branches: [ main ]
workflow_dispatch:
pull_request:
types: [opened, reopened]
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DoozyX/clang-format-lint-action@v0.17
with:
source: '.'
exclude: './lib'
extensions: 'h,hpp,cpp,c'
clangFormatVersion: 17
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 }}