Skip to content

Commit

Permalink
Fix blank line detection
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Oct 1, 2023
1 parent ab7527a commit f1c750a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/reusable-integrity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ jobs:
name: "Remove blank first lines and multiple blank lines 🐌"
run: |
# Exclude binary files, empty files and ones with linguist-generated attribute set
git grep --files-with-matches -I -e '.' \
git ls-files --cached \
| git check-attr --stdin --all \
| sed -n -e 's#^\(.\+\): linguist-generated: set$#":!:\1"#p' \
| xargs -- git ls-files --cached -z -- \
| xargs -- git grep --null --files-with-matches -I -e '.' -- \
| xargs --null -n 1 -- sed -i -e '/./,$!d' -e '/^$/N;/^\n$/D'
-
name: "Check differences to repository"
Expand Down

0 comments on commit f1c750a

Please sign in to comment.