Skip to content

Commit

Permalink
Raise error on fail
Browse files Browse the repository at this point in the history
  • Loading branch information
colincasey committed Apr 23, 2024
1 parent 4562cf3 commit 869670e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,15 @@ jobs:
run: npm run api:docs
- name: Ensure API and doc changes have been committed
run: |
if (( "$(git status --porcelain=1 | wc -l)" != 0 )); then
git add --renormalize .
if (( "$(git diff --ignore-space-at-eol --ignore-cr-at-eol | wc -l)" != 0 )); then
cat << EOF >> $GITHUB_STEP_SUMMARY
### Uncommitted changes
### Detected uncommitted changes
\`\`\`shell
$(git diff-index HEAD)
$(git diff)
\`\`\`
EOF
git diff
exit 1
fi
1 change: 1 addition & 0 deletions api/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf

0 comments on commit 869670e

Please sign in to comment.