fixed bug with CmakeList not being renderered #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Clang-Format | |
on: [push] | |
jobs: | |
clang-format: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.CI_TOKEN }} | |
- name: Install Clang-Format | |
run: sudo apt-get install -y clang-format git | |
- name: Run Clang-Format | |
run: find . -regex './**/**.\(cpp\|hpp\|cc\|cxx\|h\|hh\)' -exec clang-format -style=file -i {} \+ | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Apply clang-format | |
branch: ${{ github.head_ref }} | |
file_pattern: ./**/**.(cpp|hpp|cc|cxx|h|hh) | |
token: ${{ secrets.CI_TOKEN }} | |