22 lines
673 B
YAML
22 lines
673 B
YAML
name: clang-format Suggest
|
|
on: [pull_request]
|
|
jobs:
|
|
formatting-check:
|
|
if: 0
|
|
permissions: # needed in forks? https://github.com/parkerbxyz/suggest-changes/issues/33
|
|
contents: read
|
|
pull-requests: write
|
|
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."
|