Compare commits
1 Commits
180b24740f
...
8a5e0aa8a1
| Author | SHA1 | Date | |
|---|---|---|---|
| 8a5e0aa8a1 |
@@ -191,5 +191,11 @@ jobs:
|
|||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: grep for patterns
|
- name: grep for patterns
|
||||||
|
# negate git grep ret code because 1 means no findings
|
||||||
run: |
|
run: |
|
||||||
git grep -E 'todo!|dbg!' -- '*.rs' && exit 1 || exit 0
|
if git --no-pager grep -E 'todo!|dbg!' -- '*.rs'; then
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user