Skip to content

Commit f8130a2

Browse files
authored
If formatting fails in CI, print detailed diff (#5756)
Co-authored-by: Anton Kolesnyk <[email protected]>
1 parent b0aa9bb commit f8130a2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

eng/pipelines/templates/jobs/ci.tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,11 @@ jobs:
143143
echo ""
144144
echo "List of files not formatted correctly:"
145145
git status | grep modified | awk '{print $2}'
146+
echo ""
147+
echo ""
148+
echo "--- Differences (patch file): ---"
149+
git diff
150+
echo "--- (You can apply the diff above locally using the 'git apply --ignore-space-change <patch_file>' command) ---"
146151
exit 1
147152
fi
148153

0 commit comments

Comments
 (0)