Compare commits
1 Commits
3aa0e12699
...
48824781eb
| Author | SHA1 | Date | |
|---|---|---|---|
| 48824781eb |
@ -19,8 +19,8 @@ fi
|
||||
if [ -n "$images_changes" ]; then
|
||||
echo "Changes detected in images/. Running specific 'make' commands..."
|
||||
|
||||
# Extract unique paths for `make` commands
|
||||
TARGETS=$(echo "$images_changes" | sed -E 's|images/||; s|/[^/]+$||' | sort -u)
|
||||
# Extract unique image targets (keep only up to 3 directory levels)
|
||||
TARGETS=$(echo "$images_changes" | sed -E 's|^images/([^/]+/[^/]+/[^/]+).*|\1|' | sort -u)
|
||||
|
||||
# Prioritize base images first
|
||||
BASE_TARGETS=$(echo "$TARGETS" | grep '/base$' || true)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user