Merge pull request #1340 from rafalste/copyright_exclude_renamed
Exclude renamed and copied files from copyright check
This commit is contained in:
commit
29be022fb9
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