Skip to content

Commit 9443963

Browse files
committed
Add debug output to understand why changed module detection not working.
1 parent de951de commit 9443963

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/check-build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,14 @@ jobs:
123123
module_dir=$(dirname "$module")
124124
module_name=$(basename "$module_dir")
125125
126+
# Get the relative path from project root
127+
module_path=${module_dir#./}
128+
129+
echo "DEBUG: module_dir=$module_dir, module_name=$module_name, module_path=$module_path"
130+
echo "DEBUG: Checking for ' $module_path/' in ' $CHANGED_FILES '"
131+
126132
# Check if this specific module or common dependencies changed
127-
if echo "$CHANGED_FILES" | grep -q " $module_name/" || \
133+
if echo " $CHANGED_FILES " | grep -q " $module_path/" || \
128134
echo "$CHANGED_FILES" | grep -q "pom.xml" || \
129135
echo "$CHANGED_FILES" | grep -q "powertools-common/"; then
130136
echo "Changes detected in $module_name - running GraalVM tests"

0 commit comments

Comments
 (0)