Exclude renamed and copied files from copyright check
Only added or modified files will be checked for a proper copyright statement. Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
This commit is contained in:
parent
d0d1db0b8d
commit
fbc612d2f5
5
.github/workflows/pullrequest.yml
vendored
5
.github/workflows/pullrequest.yml
vendored
@ -20,7 +20,10 @@ jobs:
|
|||||||
files_ignore: '.github/**'
|
files_ignore: '.github/**'
|
||||||
- name: List all changed files
|
- name: List all changed files
|
||||||
run: |
|
run: |
|
||||||
for FILE in ${{ steps.changed-files.outputs.all_changed_files }}; do
|
files_to_check=(${{ steps.changed-files.outputs.added_files }})
|
||||||
|
files_to_check+=(${{ steps.changed-files.outputs.modified_files }})
|
||||||
|
|
||||||
|
for FILE in ${files_to_check[@]}; do
|
||||||
REGEX=".*\.(.*)"
|
REGEX=".*\.(.*)"
|
||||||
if [[ "$FILE" =~ $REGEX ]]
|
if [[ "$FILE" =~ $REGEX ]]
|
||||||
then
|
then
|
||||||
|
Loading…
Reference in New Issue
Block a user