File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,16 @@ for PKG in $PACKAGES; do
12
12
MANIFEST_PATH=" ${PKG##*::: } "
13
13
DIR=$( dirname " $MANIFEST_PATH " )
14
14
15
- # Check if any file in the package directory changed since the last tag
16
- if git diff --quiet " $LAST_TAG " ..HEAD -- " $DIR " ; then
15
+ # Look for release commit for this member up to the last tag
16
+ RELEASE_COMMIT=$( git log --oneline --grep=" ^$NAME -v" --format=" %H" " $LAST_TAG " ..HEAD | head -n1)
17
+
18
+ if [[ -z " $RELEASE_COMMIT " ]]; then
19
+ # No release commit found, use the latest release tag commit
20
+ RELEASE_COMMIT=$( git rev-list -n 1 " $LAST_TAG " )
21
+ fi
22
+
23
+ # Check if any file in the package directory changed since the member's release commit or latest tag release
24
+ if git diff --quiet " $RELEASE_COMMIT " ..HEAD -- " $DIR " ; then
17
25
continue
18
26
fi
19
27
You can’t perform that action at this time.
0 commit comments