Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
test: improve output when source_and_dist_match fails
Browse files Browse the repository at this point in the history
  • Loading branch information
kdmccormick committed Jan 9, 2024
1 parent fb4b70a commit 218e5c4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ jobs:

- name: Confirm that unpacked tars match source
run: |
git update-index --refresh
git diff-index HEAD -- && {
git update-index --refresh && git diff-index HEAD -- && {
echo -e "\033[0;32m=============================================================================\033[0m"
echo -e "\033[0;32mUnpacked .tar.gz files do match source XML, all is well. \033[0m"
echo -e "\033[0;32m=============================================================================\033[0m"
exit 0
} || {
echo -e "\033[0;31m=============================================================================\033[0m"
echo -e "\033[0;31mERROR: Unpacked .tar.gz files do not match source XML! See differences below:\033[0m"
echo -e "\033[0;31m=============================================================================\033[0m"
git diff
}
echo -e "\033[0;31m=============================================================================\033[0m"
echo -e "\033[0;31mERROR: Unpacked .tar.gz files do not match source XML! See differences below:\033[0m"
echo -e "\033[0;31m=============================================================================\033[0m"
git diff

0 comments on commit 218e5c4

Please sign in to comment.