thoroughly lint renamed files also

This commit is contained in:
Moritz Raabe 2021-02-08 10:42:59 +01:00
parent c22d81c94b
commit 79757bbcd5

View file

@ -40,7 +40,7 @@ jobs:
- name: Run thorough lint on modified rule files
run: |
cd rules/
for changed_file in ${{ steps.files.outputs.added_modified }}; do
for changed_file in ${{ steps.files.outputs.added_modified }} ${{ steps.files.outputs.renamed }}; do
if [[ ! $changed_file =~ ".git" ]]; then
tag=$(grep 'name:' $changed_file | sed 's/^.*: //')
python ../scripts/lint.py --thorough -t "$tag" -v .