Skip to content

Commit

Permalink
fix clang formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanbez committed Aug 13, 2024
1 parent 2e09379 commit a5a9e5e
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/clang-format-fix.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
name: clang-format Check
name: clang-format Fix
on:
workflow_dispatch:
push:
jobs:
formatting-check:
name: Formatting Check
name: Commit Format Changes
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip-ci')"
permissions:
contents: write # In order to allow EndBug/add-and-commit to commit changes
steps:
- uses: actions/checkout@v2
- name: Run clang-format style check for C programs.
uses: DoozyX/clang-format-lint-action@v0.11
- uses: actions/checkout@v3
- name: Fix C formatting issues detected by clang-format
uses: DoozyX/clang-format-lint-action@v0.13
with:
source: '.'
extensions: 'c,h,cpp,hpp'
clangFormatVersion: 10
inplace: True
style: file
# exclude: './config '
- uses: EndBug/add-and-commit@v7
- uses: EndBug/add-and-commit@v9
with:
author_name: github-actions
author_email: github-actions[bot]@users.noreply.github.com
message: 'Committing clang-format changes'
message: 'committing clang-format changes'

0 comments on commit a5a9e5e

Please sign in to comment.