Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
Update ClangFormat.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Arteiii authored Feb 12, 2024
1 parent 0d76bfb commit a21835b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ClangFormat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
&& sudo apt update \
&& sudo apt install gh -y
- name: Fetch changes from the remote branch
run: git pull origin $GITHUB_HEAD_REF

- name: Check and Auto-Fix Formatting
run: |
find . \( -name "*.h" -or -name "*.c" -or -name "*.cpp" -or -name "*.hpp" -or -name "*.cc" -or -name "*.cxx" -or -name "*.hxx" -or -name "*.inl" -or -name "*.ipp" \) \
Expand All @@ -36,5 +39,4 @@ jobs:
git diff --exit-code || (git add -A && git commit -m "Auto-fix formatting issues")
- name: Push changes to the pull request branch
run: |
git push origin HEAD:$GITHUB_HEAD_REF
run: git push origin HEAD:$GITHUB_HEAD_REF

0 comments on commit a21835b

Please sign in to comment.