diff --git a/lib/functions/buildFileList.sh b/lib/functions/buildFileList.sh index 252f349e..1ff6bdfa 100755 --- a/lib/functions/buildFileList.sh +++ b/lib/functions/buildFileList.sh @@ -227,7 +227,7 @@ function BuildFileList() { ################################################### # Filter files if FILTER_REGEX_EXCLUDE is not set # ################################################### - if [ "${IGNORE_GITIGNORED_FILES}" == "true" ] && git check-ignore "$FILE"; then + if [ "${IGNORE_GITIGNORED_FILES}" == "true" ] && git -C "${GITHUB_WORKSPACE}" check-ignore "$FILE"; then debug "${FILE} is ignored by Git. Skipping ${FILE}" continue fi