build: check for ignored files being included in repo
This commit is contained in:
parent
1a89052244
commit
5d372a60de
1 changed files with 9 additions and 0 deletions
|
@ -18,6 +18,15 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Ignored Files
|
||||||
|
run: |
|
||||||
|
IGNORED=$(git ls-files --cached -i --exclude-standard)
|
||||||
|
if [ -n "$IGNORED" ]
|
||||||
|
then
|
||||||
|
echo "Ignored files present:\n$IGNORED"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Machete
|
- name: Machete
|
||||||
run: cargo machete
|
run: cargo machete
|
||||||
|
|
Loading…
Add table
Reference in a new issue