diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index db31a2c..cf35dcc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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