Skip to content

Commit

Permalink
CI: Try different trailing whitespace [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
gdsjaar authored and tokusanya committed Oct 16, 2024
1 parent 19db1ff commit 697207b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/trailing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,14 @@ jobs:
egress-policy: audit

- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- uses: harupy/find-trailing-whitespace@56310d70ae8fd21afec8d4307d2d9ab6c15e7c5d # master
- name: Find Trailing Whitespace
run: |
set +e
lines=$(git grep --cached -In '[[:blank:]]$')
if [ ! -z "$lines" ]; then
echo -e "\n The following lines contain trailing whitespace: \n"
echo -e "${lines}"
echo -e "\nFailed.\n"
exit 1
fi
exit 0

0 comments on commit 697207b

Please sign in to comment.