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