Compare commits
1 Commits
8a5e0aa8a1
...
a88a5732cc
| Author | SHA1 | Date | |
|---|---|---|---|
| a88a5732cc |
@@ -191,11 +191,9 @@ 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: |
|
||||||
if git --no-pager grep -E 'todo!|dbg!' -- '*.rs'; then
|
set -x
|
||||||
exit 0
|
git --no-pager grep -E 'todo!|dbg!' -- '*.rs'
|
||||||
else
|
retcode=$?
|
||||||
exit 1
|
echo "retcode=$?"
|
||||||
fi
|
(( $retcode )) && echo "exit 1" || echo "exit 0"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user