Skip to content

Commit 468588b

Browse files
committed
add a more detailed error message
1 parent 0dcf22a commit 468588b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,10 @@ jobs:
4848
- name: Fail when generated changes are not checked-in
4949
run: |
5050
git update-index --refresh
51-
git diff-index --quiet HEAD --
51+
if ! git diff-index --quiet HEAD -- ; then
52+
echo "The following files have changes that weren't committed:"
53+
git diff --name-status
54+
echo "\nDetailed diff for app/assets/javascripts/turbo files:"
55+
git diff app/assets/javascripts/turbo*
56+
exit 1
57+
fi

0 commit comments

Comments
 (0)