From dad7a84503d861849a9b24cb84c85ad4d6637bc0 Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Fri, 8 Nov 2024 18:03:00 +0100 Subject: [PATCH] CI: multi-arch-test-build: fix error in detecting changed packages Fix error in detecting changed packages if the packge are present in the root directory instead of a subdirectory. This is the case for routing feeds that have packages directly in the root directory. This caused a problem in detecting the packages as the sed regex didn't account for this. Signed-off-by: Christian Marangi --- .github/workflows/multi-arch-test-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/multi-arch-test-build.yml b/.github/workflows/multi-arch-test-build.yml index 54a18b0f0a..35cfcff992 100644 --- a/.github/workflows/multi-arch-test-build.yml +++ b/.github/workflows/multi-arch-test-build.yml @@ -78,7 +78,7 @@ jobs: for ROOT in $PKG_ROOTS; do for CHANGE in $CHANGES; do if [[ "$CHANGE" == "$ROOT"* ]]; then - PACKAGES+=$(echo "$ROOT" | sed -e 's@.*/\(.*\)/@\1 @') + PACKAGES+=$(echo "$ROOT" | sed -e 's@\(.*/\)*\(.*\)/@\2 @') break fi done