mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-21 16:21:00 -05:00
Change directory when checking ignored files (#4933)
* Change dir when checking ignored files * Set to GITHUB_WORKSPACE
This commit is contained in:
parent
c5fa6a999a
commit
eb688a090c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue