aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/kernel.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/kernel.yml')
-rw-r--r--.github/workflows/kernel.yml10
1 files changed, 6 insertions, 4 deletions
diff --git a/.github/workflows/kernel.yml b/.github/workflows/kernel.yml
index 5f18a39c55..3aa46f5cd7 100644
--- a/.github/workflows/kernel.yml
+++ b/.github/workflows/kernel.yml
@@ -54,10 +54,12 @@ jobs:
TARGETS_SUBTARGETS="$(echo "$ALL_TARGETS" | sort -u -t '/' -k1 | awk '{ print $1 }')"
TARGETS="$(echo "$ALL_TARGETS" | sort -u -t '/' -k1,1 | awk '{ print $1 }')"
- # On testing non-specific target, skip testing each subtarget
- if echo "$CHANGED_FILES" | grep -v -q target/linux ||
- echo "$CHANGED_FILES" | grep -q target/linux/generic; then
- TARGETS_SUBTARGETS=$TARGETS
+ # On testing non-specific target, skip testing each subtarget if we are testing pr
+ if [ ${{ github.event_name }} != 'push' ]; then
+ if echo "$CHANGED_FILES" | grep -v -q target/linux ||
+ echo "$CHANGED_FILES" | grep -q target/linux/generic; then
+ TARGETS_SUBTARGETS=$TARGETS
+ fi
fi
JSON_TARGETS_SUBTARGETS='['