ci: grep: add option to ignore grep.sh errors

Adds an option to ignore grep.sh errors in instances where there may be false
positives due to git weirdness. e.g. git not tracking renames and instead
seeing them as new packages.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8652>
This commit is contained in:
Aster Boese
2026-05-27 15:29:12 +02:00
parent ca76992b64
commit 7a6d8d5e9c
+12
View File
@@ -1,4 +1,7 @@
#!/bin/sh -e #!/bin/sh -e
# shellcheck shell=busybox
# Description: check various bad patterns with grep # Description: check various bad patterns with grep
# https://postmarketos.org/pmb-ci # https://postmarketos.org/pmb-ci
@@ -168,6 +171,15 @@ if [ -n "$CI_MERGE_REQUEST_DIFF_BASE_SHA" ]; then
exit_code=1 exit_code=1
fi fi
fi fi
# Get latest commit message in MR
case "$CI_COMMIT_DESCRIPTION" in
*"[ci:skip-grep]"*)
echo "WARNING: not checking packages with grep"
echo " ([ci:skip-grep])!"
exit_code=0
;;
esac
fi fi
exit "$exit_code" exit "$exit_code"