From b26b1b6dc45e3125040920382fc184f62ccefcc1 Mon Sep 17 00:00:00 2001 From: Hans Date: Tue, 8 Oct 2024 02:05:01 +0800 Subject: [PATCH] ci: add cmake format workflow --- .github/workflows/cmake-format.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/cmake-format.yml 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.'