ci: fail clang-diff-format on failure

This commit is contained in:
pasta 2024-03-12 12:21:22 -05:00
parent b8145e44bf
commit d1f881d7b4
No known key found for this signature in database
GPG Key ID: 52527BEDABE87984

View File

@ -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