From df7c872004d78bc4e2f34c3a963a13f1f784e187 Mon Sep 17 00:00:00 2001 From: Pablo Garay Date: Fri, 25 Oct 2024 19:34:28 -0700 Subject: [PATCH] Exclude path --- .github/workflows/copyright-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copyright-check.yml b/.github/workflows/copyright-check.yml index 8d1203d4640d..1da0518e58f4 100644 --- a/.github/workflows/copyright-check.yml +++ b/.github/workflows/copyright-check.yml @@ -32,7 +32,7 @@ jobs: # Files ending with .py should have Copyright notice in the first 10 lines find_files_with_missing_copyright() { - find ./ -type f -name '*.py' | while read path; do + find ./ -type f -name '*.py' -not -path ".git/*" | while read path; do echo -en $path"\t" head -n 10 $path | tr '\n' '\t' | sed 's/\t$/\n/' done \