Skip to content

Commit 1a6f145

Browse files
committed
Fix display of code changes in clang-format CI action
Versions of `git-clang-format` later than 11 issue exit code 1 when changes were made to the source code. Although our CI job ended with a non-zero exit code as expected, it terminated early than wanted so that the differences are not printed to the log.
1 parent 1e4fdef commit 1a6f145

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/syntax-checks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
4646
# Do the checking. "eval" is used so that quotes (as inserted into $EXCLUDES
4747
# above) are not interpreted as parts of file names.
48-
git-clang-format-15 --binary clang-format-15 $MERGE_BASE
48+
git-clang-format-15 --binary clang-format-15 $MERGE_BASE || true
4949
git diff > formatted.diff
5050
if [[ -s formatted.diff ]] ; then
5151
echo 'Formatting error! The following diff shows the required changes'

0 commit comments

Comments
 (0)