diff --git a/.github/workflows/copyright-check.yml b/.github/workflows/copyright-check.yml index 871addbdf72f..c008ba91c2a8 100644 --- a/.github/workflows/copyright-check.yml +++ b/.github/workflows/copyright-check.yml @@ -32,7 +32,8 @@ jobs: # Files ending with .py should have Copyright notice in the first 10 lines find_files_with_missing_copyright() { - find ./ -type f -name '*.py' -not -path "./.git/*" | while read path; do + find ./ -type f -name '*.py' -not -path "./.git/*" -not -path "./*__init__.py" + | while read path; do echo -en $path"\t" head -n 10 $path | tr '\n' '\t' | sed 's/\t$/\n/' done \ @@ -41,8 +42,8 @@ jobs: | egrep -iv '*Copyright.*Apache.*' \ | egrep -iv '*Apache.*License.*' \ | while read line; do - echo $line | cut -d' ' -f1 - done + echo $line | cut -d' ' -f1 + done }