Skip to content

clang-format-apply

clang-format-apply #18

name: clang-format-apply
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: DoozyX/clang-format-lint-action@v0.18.1
with:
source: '.'
exclude: './extern ./libs'
clangFormatVersion: 18.1.3
inplace: True
- run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -a -m "auto clang-format action"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}