Skip to content

Commit 26e0983

Browse files
committed
sync: update workflow to match streamlined 1.0.x version
- Remove verbose debugging steps - Use cleaner module extraction logic - Streamline commit range display
1 parent 4ea7c5c commit 26e0983

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

.github/workflows/maintenance-fast.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@ jobs:
3131
- name: Show commit range
3232
run: |
3333
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"
3835
3936
- name: Compute impacted modules
4037
id: mods
@@ -76,12 +73,8 @@ jobs:
7673
echo "$MODS"
7774
echo ""
7875
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)
8578
echo "Extracted modules: '$MODULE_LIST'"
8679
echo "modules=$MODULE_LIST" >> "$GITHUB_OUTPUT"
8780

0 commit comments

Comments
 (0)