Skip to content

Commit

Permalink
Merge pull request #396 from actions/check-dist
Browse files Browse the repository at this point in the history
Add missing dist check
  • Loading branch information
ncalteen committed May 2, 2024
2 parents b07e85e + c4ac35c commit 5f89e98
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ jobs:
name: Check dist/
runs-on: ubuntu-latest

permissions:
contents: read
statuses: write

steps:
- name: Checkout
id: checkout
Expand All @@ -54,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

0 comments on commit 5f89e98

Please sign in to comment.