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:
Etan Kissling 2023-04-28 16:57:51 +02:00 committed by GitHub
parent ef0b95dfbc
commit 8ef6223026
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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=()