Skip to content

Commit 1ebabd0

Browse files
committed
kernel: fix set target step generic detection condition
Fix set target step generic detection condition that doesn't account for files in target/linux directory changes. (example target/linux/Makefile) Signed-off-by: Christian Marangi <[email protected]>
1 parent 5315f78 commit 1ebabd0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/kernel.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
5656
# On testing non-specific target, skip testing each subtarget if we are testing pr
5757
if [ ${{ github.event_name }} != 'push' ]; then
58-
if echo "$CHANGED_FILES" | grep -v -q target/linux ||
58+
if echo "$CHANGED_FILES" | grep -v -q -P ^target/linux/.*/ ||
5959
echo "$CHANGED_FILES" | grep -q target/linux/generic; then
6060
TARGETS_SUBTARGETS=$TARGETS
6161
fi
@@ -70,7 +70,7 @@ jobs:
7070
TARGET=$(echo $TARGET_SUBTARGET | cut -d "/" -f 1)
7171
SUBTARGET=$(echo $TARGET_SUBTARGET | cut -d "/" -f 2)
7272
73-
if echo "$CHANGED_FILES" | grep -v -q target/linux ||
73+
if echo "$CHANGED_FILES" | grep -v -q -P ^target/linux/.*/ ||
7474
echo "$CHANGED_FILES" | grep -q target/linux/generic ||
7575
echo "$CHANGED_FILES" | grep -q $TARGET; then
7676
@@ -103,7 +103,7 @@ jobs:
103103
TARGET=$(echo $TARGET_SUBTARGET | cut -d "/" -f 1)
104104
SUBTARGET=$(echo $TARGET_SUBTARGET | cut -d "/" -f 2)
105105
106-
if echo "$CHANGED_FILES" | grep -v -q target/linux ||
106+
if echo "$CHANGED_FILES" | grep -v -q -P ^target/linux/.*/ ||
107107
echo "$CHANGED_FILES" | grep -q target/linux/generic ||
108108
echo "$CHANGED_FILES" | grep -q $TARGET; then
109109

0 commit comments

Comments
 (0)