Skip to content

Commit 6b3055f

Browse files
committed
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 <[email protected]>
1 parent 2d35537 commit 6b3055f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/multi-arch-test-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
for ROOT in $PKG_ROOTS; do
7878
for CHANGE in $CHANGES; do
7979
if [[ "$CHANGE" == "$ROOT"* ]]; then
80-
PACKAGES+=$(echo "$ROOT" | sed -e 's@.*/\(.*\)/@\1 @')
80+
PACKAGES+=$(echo "$ROOT" | sed -e 's@\(.*/\)*\(.*\)/@\2 @')
8181
break
8282
fi
8383
done

0 commit comments

Comments
 (0)