File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 31
31
- name : Show commit range
32
32
run : |
33
33
echo "Base ref: origin/$GITHUB_REF_NAME"
34
- echo "HEAD commit: $(git rev-parse HEAD)"
35
- echo "HEAD~1 commit: $(git rev-parse HEAD~1 2>/dev/null || echo 'HEAD~1 not available')"
36
- echo "Recent commits:"
37
- git log --oneline -3 || echo "Git log failed"
34
+ git log --oneline "origin/$GITHUB_REF_NAME...HEAD"
38
35
39
36
- name : Compute impacted modules
40
37
id : mods
76
73
echo "$MODS"
77
74
echo ""
78
75
79
- # Extract just the final result (last line that looks like a module or <none>)
80
- MODULE_LIST=$(echo "$MODS" | grep -E "^(vector-stores|spring-ai|models|<none>|$)" | tail -1)
81
- if [ -z "$MODULE_LIST" ]; then
82
- # If no clear module match, try the very last non-empty line
83
- MODULE_LIST=$(echo "$MODS" | grep -v "^$" | tail -1)
84
- fi
76
+ # Extract just the module list (last line that isn't stderr logging)
77
+ MODULE_LIST=$(echo "$MODS" | grep -v "^Detected base ref:" | grep -v "^Changed files" | grep -v "^Final module list:" | tail -1)
85
78
echo "Extracted modules: '$MODULE_LIST'"
86
79
echo "modules=$MODULE_LIST" >> "$GITHUB_OUTPUT"
87
80
You can’t perform that action at this time.
0 commit comments