From 8ef6223026e7a7c101a3bdd7076e91ba432d6fe3 Mon Sep 17 00:00:00 2001 From: Etan Kissling Date: Fri, 28 Apr 2023 16:57:51 +0200 Subject: [PATCH] ignore submodules in copyright check (#4874) Otherwise, they get reported as missing copyright header whenever selecting a new commit for a submodule. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d929a1496..ecacd0a28 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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=()