fix(pipeline): use tag range for change detection fallback
HEAD~1 only detected the previous commit, missing earlier changes in the same release. Now compares LAST_TAG..HEAD~1 to catch all changes since the previous release tag. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
86c4f31d12
commit
9b8d998641
1 changed files with 6 additions and 2 deletions
|
|
@ -170,8 +170,12 @@ fi
|
|||
if [[ -z "$CHANGED_SERVICES" ]]; then
|
||||
log_info "Checking file patterns for changes..."
|
||||
|
||||
# Fallback: check recent commits for known paths
|
||||
CHANGED_FILES=$(git diff --name-only HEAD~1 2>/dev/null || echo "")
|
||||
# Fallback: check all commits since last tag (excludes version bump)
|
||||
if [[ -n "$LAST_TAG" ]]; then
|
||||
CHANGED_FILES=$(git diff --name-only ${LAST_TAG}..HEAD~1 2>/dev/null || echo "")
|
||||
else
|
||||
CHANGED_FILES=$(git diff --name-only HEAD~1 2>/dev/null || echo "")
|
||||
fi
|
||||
|
||||
if echo "$CHANGED_FILES" | grep -q "features/status-dashboard/"; then
|
||||
CHANGED_SERVICES="status-dashboard"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue