Skip to content

Commit 1f863dd

Browse files
committed
show hf_xet/Cargo.lock diff
1 parent 98b3de0 commit 1f863dd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/hf-xet-tests.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,9 @@ jobs:
4545
- name: Check Cargo.lock has no uncommitted changes
4646
run: |
4747
# the Build wheel step would update hf_xet/Cargo.lock if it is out of date
48-
test -z "$(git status --porcelain hf_xet/Cargo.lock)" || (echo "hf_xet/Cargo.lock has uncommitted changes!" && exit 1)
48+
if [ -n "$(git status --porcelain hf_xet/Cargo.lock)" ]; then
49+
echo "::error::hf_xet/Cargo.lock has uncommitted changes!"
50+
echo "Diff:"
51+
git diff hf_xet/Cargo.lock
52+
exit 1
53+
fi

0 commit comments

Comments
 (0)