From 2c519b77a80132fde41cd2076bd27c458d01eae6 Mon Sep 17 00:00:00 2001 From: Tim Siebert Date: Mon, 11 Nov 2024 07:54:00 +0100 Subject: [PATCH] automatic formatting --- .github/workflows/format.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/format.yml diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml new file mode 100644 index 00000000..fe050a28 --- /dev/null +++ b/.github/workflows/format.yml @@ -0,0 +1,21 @@ +name: Run clang-format Linter + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: DoozyX/clang-format-lint-action@v0.18.1 + with: + source: '.' + inplace: True + - uses: EndBug/add-and-commit@v9 + with: + author_name: Clang Robot + author_email: robot@example.com + message: 'Committing clang-format changes' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file