mirror of
https://github.com/actions/typescript-action.git
synced 2025-04-05 14:59:47 +00:00
git add -N and no --cached
This commit is contained in:
5
.github/workflows/check-dist.yml
vendored
5
.github/workflows/check-dist.yml
vendored
@ -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
|
||||
|
Reference in New Issue
Block a user