Skip to content

Commit b7a3da0

Browse files
github-actions: Add support for skipping kselftest/ltp
Signed-off-by: Shreeya Patel <spatel@ciq.com>
1 parent 41f9fbb commit b7a3da0

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/kernel-build-and-test-multiarch-trigger.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,20 @@ jobs:
6969
echo "SKIP_CI=false" >> "$GITHUB_ENV"
7070
fi
7171
72+
# Check for [skip kselftests] in commit message or PR title
73+
if echo "$COMMIT_MSG" | grep -qiE '\[skip kselftests\]' || \
74+
echo "$PR_TITLE" | grep -qiE '\[skip kselftests\]'; then
75+
echo "⏭️ [skip kselftests] detected — skipping kselftests"
76+
SKIP_KSELFTESTS=true
77+
fi
78+
79+
# Check for [skip ltp] in commit message or PR title
80+
if echo "$COMMIT_MSG" | grep -qiE '\[skip ltp\]' || \
81+
echo "$PR_TITLE" | grep -qiE '\[skip ltp\]'; then
82+
echo "⏭️ [skip ltp] detected — skipping LTP"
83+
SKIP_LTP=true
84+
fi
85+
7286
# On push events there is no PR context; BASE_REF is empty string
7387
# It will be deduced automatically in a later worklow
7488
if [[ "$IS_PR" == "false" ]]; then

0 commit comments

Comments
 (0)