diff --git a/.github/workflows/cmake-format.yml b/.github/workflows/cmake-format.yml new file mode 100644 index 0000000..991da08 --- /dev/null +++ b/.github/workflows/cmake-format.yml @@ -0,0 +1,23 @@ +name: Run cmake-format linter + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Format CMake files + id: cmake-format + uses: PuneetMatharu/cmake-format-lint-action@v1.0.4 + with: + args: --in-place + + - name: Commit changes + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_user_name: cmake-format-bot + commit_message: 'Automated commit of cmake-format changes.'