Try to suggest clang format changes (#13685)
* Enable reviewdog for clang-format * Change pipeline * Add github tocken * Revert "Add github tocken" This reverts commitdfe759a56d
. * Revert "Change pipeline" This reverts commite7908202e9
. * Fixed code style
This commit is contained in:
parent
fa50e35bb8
commit
d80636c56c
12
.github/workflows/code_style.yml
vendored
12
.github/workflows/code_style.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user