fix git grep
Some checks failed
Gentoo Utils / build-oci-image (push) Successful in 6s
Gentoo Utils / grep (push) Failing after 3s
Gentoo Utils / check-format (push) Successful in 8s
Gentoo Utils / docs (push) Successful in 13s
Gentoo Utils / build (push) Successful in 19s
Gentoo Utils / test (push) Successful in 27s
Gentoo Utils / fuzz (push) Failing after 43s

This commit is contained in:
2025-12-14 20:15:02 -06:00
parent 61edc25d50
commit e941d742cd

View File

@@ -4,7 +4,7 @@ on: [push]
defaults:
run:
shell: bash -le -o pipefail {0}
shell: bash -l {0}
jobs:
build-oci-image:
@@ -191,5 +191,14 @@ jobs:
uses: actions/checkout@v5
- name: grep for patterns
# negate git grep ret code because 1 means no findings
run: |
git grep -E 'todo!|dbg!' -- '*.rs' && exit 1 || exit 0
echo "if git --no-pager grep -E 'todo!|dbg!' -- '*.rs'..."
if git --no-pager grep -E 'todo!|dbg!' -- '*.rs'; then
echo "EXIT 0 WE GOT HERE PIPELINE"
exit 0
else
echo "EXIT 1 WE GOT HERE PIPELINE"
exit 1
fi