diff --git a/.github/workflows/clang-format-checker.yml b/.github/workflows/clang-format-checker.yml index 758dd04209..1322c0cf1a 100644 --- a/.github/workflows/clang-format-checker.yml +++ b/.github/workflows/clang-format-checker.yml @@ -17,8 +17,8 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 - - name: install clang-format - run: sudo apt install -y clang-format + - name: install clang-format-15 + run: sudo apt install -y clang-format-15 - name: Comparing PR against target branch env: PR_NUMBER: ${{ github.event.number }} @@ -27,7 +27,7 @@ jobs: echo Comparing $PR_NUMBER vs target branch git fetch origin refs/pull/$PR_NUMBER/head:pull/$PR_NUMBER git diff -U0 --no-color HEAD..pull/$PR_NUMBER - git diff -U0 --no-color HEAD..pull/$PR_NUMBER | clang-format-diff -p1 | tee format.diff + git diff -U0 --no-color HEAD..pull/$PR_NUMBER | clang-format-diff-15 -p1 | tee format.diff if [ -s format.diff ] then echo PR contains clang-format violations. First 50 lines of the diff: >> message.txt