diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index 45cfdd3..e567302 100644 --- a/.github/workflows/check-dist.yml +++ b/.github/workflows/check-dist.yml @@ -38,9 +38,10 @@ jobs: - name: Compare the expected and actual dist/ directories run: | - if [ "$(git diff --cached --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then + git add -N . + if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then echo "Detected uncommitted changes after build. See status below:" - git diff --cached --ignore-space-at-eol dist/ + git diff --ignore-space-at-eol dist/ exit 1 fi id: diff