mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 11:32:46 +01:00
ci: fail clang-diff-format on failure
This commit is contained in:
parent
b8145e44bf
commit
d1f881d7b4
11
.github/workflows/clang-diff-format.yml
vendored
11
.github/workflows/clang-diff-format.yml
vendored
@ -13,5 +13,12 @@ jobs:
|
||||
- name: Fetch git
|
||||
run: git fetch
|
||||
- name: Run Clang-Format-Diff.py
|
||||
run: git diff -U0 origin/develop -- . ':(exclude)src/qt/dashstrings.cpp' ':(exclude)src/qt/locale/' | ./contrib/devtools/clang-format-diff.py -p1
|
||||
|
||||
run: |
|
||||
git diff -U0 origin/develop -- . ':(exclude)src/qt/dashstrings.cpp' ':(exclude)src/qt/locale/' | ./contrib/devtools/clang-format-diff.py -p1 > diff_output.txt
|
||||
if [ -s diff_output.txt ]; then
|
||||
echo "Clang format differences found:"
|
||||
cat diff_output.txt
|
||||
exit 1
|
||||
else
|
||||
echo "No Clang format differences found."
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user