mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-25 07:31:05 -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 #
|
# 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}"
|
debug "${FILE} is ignored by Git. Skipping ${FILE}"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue