Skip to content

Commit 82c7327

Browse files
authored
Merge pull request #894 from alexquitiaquez/Bugfix/fix-issue-893
Fixing issues/893 - git diff command fails if _dist/_ folder doesn't exist
2 parents 0062679 + 416b46d commit 82c7327

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/check-dist.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ jobs:
5050
- name: Compare Directories
5151
id: diff
5252
run: |
53+
if [ ! -d dist/ ]; then
54+
echo "Expected dist/ directory does not exist. See status below:"
55+
ls -la ./
56+
exit 1
57+
fi
5358
if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then
5459
echo "Detected uncommitted changes after build. See status below:"
5560
git diff --ignore-space-at-eol --text dist/

0 commit comments

Comments
 (0)