summaryrefslogtreecommitdiff
path: root/.github/workflows/clang-pr.yml
blob: 0b5e41d609837c5fc917e43b06536cbb87469d8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: clang-format PR
on:
  push:
    branches: ["main"]
jobs:
  formatting-check:
    if: 0
    runs-on: ubuntu-24.04
    steps:
      - uses: actions/checkout@v4
      - name: Install Dependance
        run: |
          sudo apt install clang-format make
      - name: Run clang-format style check for C/C++/Protobuf programs.
        run: |
          clang-format --version
          python tools/format.py
      - name: Create Pull Request
        uses: peter-evans/create-pull-request@v7
        with:
          commit-message: clang format
          title: Clang Format
          branch: clang-format