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 committed Nov 8, 2024
1 parent 2be1a7a commit de7a0e2
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 @@ -77,7 +77,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 de7a0e2

Please sign in to comment.