Try to suggest clang format changes (#13685)

* Enable reviewdog for clang-format

* Change pipeline

* Add github tocken

* Revert "Add github tocken"

This reverts commit dfe759a56d.

* Revert "Change pipeline"

This reverts commit e7908202e9.

* Fixed code style
This commit is contained in:
Ilya Churaev authored and GitHub committed 2022-10-28 15:15:49 +04:00
1 parent fa50e35bb8
commit d80636c56c
1 file changed
+9 -3
+9 -3
View File
@@ -37,15 +37,21 @@ jobs:
- name: Create code style diff
if: failure()
run: |
cmake --build . --target clang_format_fix_all -j8
cmake --build build --target clang_format_fix_all -j8
git diff > code_style_diff.diff
working-directory: build
- name: suggester / clang-format
if: failure() && startsWith(github.event_name, 'pull_request')
uses: reviewdog/action-suggester@v1
with:
level: error
tool_name: clang-format
- uses: actions/upload-artifact@v2
if: failure()
with:
name: code_style_diff
path: build/code_style_diff.diff
path: code_style_diff.diff
ShellCheck:
runs-on: ubuntu-22.04