Fix prevent trailing whitespace lint command
Recently we added a jpg file to OSH documentation but the lint job didn't run due to the job configuration. But then for the next PR link job did run and failed due to trailing whitespace in the jpg file. Change-Id: I9abf8f93a4566411076190965f282375846dc5db
This commit is contained in:
parent
c48dffaaa2
commit
cf2cdd7821
@ -38,7 +38,7 @@
|
||||
when: lint_osh is defined
|
||||
|
||||
- name: Prevent trailing whitespaces
|
||||
shell: find . \! \( -path "*/\.*" -o -path "*/doc/build/*" -o -name "*.tgz" -o -name "*.png" \) -type f -exec egrep -l " +$" {} \;
|
||||
shell: find . \! \( -path "*/\.*" -o -path "*/doc/build/*" -o -name "*.tgz" -o -name "*.png" -o -name "*.jpg" \) -type f -exec grep -El " +$" {} \;
|
||||
register: _found_whitespaces
|
||||
failed_when: _found_whitespaces.stdout != ""
|
||||
args:
|
||||
|
@ -22,7 +22,6 @@
|
||||
- openstack/openstack-helm-infra
|
||||
irrelevant-files:
|
||||
- ^.*\.rst$
|
||||
- ^doc/.*$
|
||||
- ^releasenotes/.*$
|
||||
|
||||
- job:
|
||||
|
Loading…
Reference in New Issue
Block a user