Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 74dd97f

Browse files
authored
Fix clang-format error code (#23)
1 parent 9631799 commit 74dd97f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/nn-cmplr-tidy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ jobs:
1414
sudo apt-get install -y clang-format
1515
- name: Run clang-format
1616
run: |
17-
git-clang-format --diff `git merge-base ${GITHUB_SHA} origin/${GITHUB_BASE_REF}` ${GITHUB_SHA}
17+
git-clang-format --diff `git merge-base ${GITHUB_SHA} origin/${GITHUB_BASE_REF}` ${GITHUB_SHA} 2>&1 | grep diff | tee log.txt
18+
exit `wc -l log.txt | awk '{print $1}'`
1819
clang-tidy:
1920
runs-on: ubuntu-latest
2021
steps:

0 commit comments

Comments
 (0)