Skip to content

Commit 3faccbc

Browse files
authoredMar 1, 2023
Merge pull request #168 from exoego/fix-167
Respect folder-path when check-modified-files-only == yes
2 parents c448486 + 1ce7e0f commit 3faccbc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎entrypoint.sh

+2-1
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)
Please sign in to comment.