git add -N and no --cached
This commit is contained in:
parent
97268e8e04
commit
3c3cfe66ad
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue