From 1ce7e0fce6deee800c782317d923dc421ebaa9f5 Mon Sep 17 00:00:00 2001 From: TATSUNO Yasuhiro Date: Fri, 23 Dec 2022 14:31:23 +0900 Subject: [PATCH] Respect folder-path when check-modified-files-only == yes --- entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 324bb70..0904110 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -168,7 +168,8 @@ if [ "$CHECK_MODIFIED_FILES" = "yes" ]; then add_options - mapfile -t FILE_ARRAY < <( git diff --name-only --diff-filter=AM "$MASTER_HASH" ) + FOLDER_ARRAY=(${FOLDER_PATH//,/ }) + mapfile -t FILE_ARRAY < <( git diff --name-only --diff-filter=AM "$MASTER_HASH" -- "${FOLDER_ARRAY[@]}") for i in "${FILE_ARRAY[@]}" do