Skip to content

Commit 1ce7e0f

Browse files
committed
Respect folder-path when check-modified-files-only == yes
1 parent c448486 commit 1ce7e0f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ if [ "$CHECK_MODIFIED_FILES" = "yes" ]; then
168168

169169
add_options
170170

171-
mapfile -t FILE_ARRAY < <( git diff --name-only --diff-filter=AM "$MASTER_HASH" )
171+
FOLDER_ARRAY=(${FOLDER_PATH//,/ })
172+
mapfile -t FILE_ARRAY < <( git diff --name-only --diff-filter=AM "$MASTER_HASH" -- "${FOLDER_ARRAY[@]}")
172173

173174
for i in "${FILE_ARRAY[@]}"
174175
do

0 commit comments

Comments
 (0)