ignore submodules in copyright check (#4874)
Otherwise, they get reported as missing copyright header whenever selecting a new commit for a submodule.
This commit is contained in:
parent
ef0b95dfbc
commit
8ef6223026
|
@ -68,7 +68,7 @@ jobs:
|
|||
|
||||
base_branch=$(jq -r '.pull_request.base.ref' "$GITHUB_EVENT_PATH")
|
||||
git fetch origin "$base_branch" 2>/dev/null
|
||||
modified_files=$(git diff --name-only --diff-filter=d "origin/$base_branch" HEAD | grep -vE '\.('$excluded_extensions')$')
|
||||
modified_files=$(git diff --name-only --diff-filter=d --ignore-submodules "origin/$base_branch" HEAD | grep -vE '\.('$excluded_extensions')$')
|
||||
|
||||
current_year=$(date +"%Y")
|
||||
outdated_files=()
|
||||
|
|
Loading…
Reference in New Issue