Skip to content

Commit

Permalink
CI: multi-arch-test-build: fix error in detecting changed packages
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Ansuel authored and 1715173329 committed Nov 24, 2024
1 parent 6a96f9a commit dad7a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/multi-arch-test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dad7a84

Please sign in to comment.