From 3c3cfe66ad6c7b372af292a7567668e90229b1ef Mon Sep 17 00:00:00 2001 From: Aaron Paterson Date: Wed, 19 Apr 2023 10:08:25 -0600 Subject: [PATCH] git add -N and no --cached --- .github/workflows/check-dist.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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