From 7a6d8d5e9c7bb9b61e7462361c0dfa7b13a87ef2 Mon Sep 17 00:00:00 2001 From: Aster Boese Date: Wed, 29 Apr 2026 12:29:25 +0200 Subject: [PATCH] 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 Part-of: --- .ci/grep.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.ci/grep.sh b/.ci/grep.sh index 19a58b515..8f7fa53eb 100755 --- a/.ci/grep.sh +++ b/.ci/grep.sh @@ -1,4 +1,7 @@ #!/bin/sh -e + +# shellcheck shell=busybox + # Description: check various bad patterns with grep # https://postmarketos.org/pmb-ci @@ -168,6 +171,15 @@ if [ -n "$CI_MERGE_REQUEST_DIFF_BASE_SHA" ]; then exit_code=1 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 exit "$exit_code"