diff --git a/.github/workflows/clang-format-suggest.yml b/.github/workflows/clang-format-suggest.yml new file mode 100644 index 0000000000..03759fffbb --- /dev/null +++ b/.github/workflows/clang-format-suggest.yml @@ -0,0 +1,17 @@ +name: clang-format Suggest +on: [pull_request] +jobs: + formatting-check: + 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 + - uses: parkerbxyz/suggest-changes@v1 + with: + comment: 'Please commit the suggested changes from clang-format.' diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index dacf8caf77..5719152cfc 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -1,5 +1,5 @@ name: clang-format Check -on: [push, pull_request] +on: [push] jobs: formatting-check: name: Formatting Check