Skip to content

Commit

Permalink
Merge pull request #894 from alexquitiaquez/Bugfix/fix-issue-893
Browse files Browse the repository at this point in the history
Fixing issues/893 - git diff command fails if _dist/_ folder doesn't exist
  • Loading branch information
ncalteen committed May 2, 2024
2 parents 0062679 + 416b46d commit 82c7327
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ jobs:
- name: Compare Directories
id: diff
run: |
if [ ! -d dist/ ]; then
echo "Expected dist/ directory does not exist. See status below:"
ls -la ./
exit 1
fi
if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff --ignore-space-at-eol --text dist/
Expand Down

1 comment on commit 82c7327

@developer982
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q

Please sign in to comment.