9062289151
Change-Id: I191265df7709a6262b44a428d78fe28ffaeb4b75
19 lines
499 B
YAML
19 lines
499 B
YAML
- name: find all .md files
|
|
find:
|
|
paths: "{{ zuul_work_dir }}"
|
|
pattern: "*.md"
|
|
register: markdown_find
|
|
|
|
- name: Run markdownlint
|
|
shell: |
|
|
set -o pipefail
|
|
set -e
|
|
~/.markdownlint/node_modules/.bin/markdownlint {{ zj_markdown|relpath(zuul_work_dir) }} 2>&1 | tee -a markdownlint.txt
|
|
args:
|
|
chdir: "{{ zuul_work_dir }}"
|
|
executable: /bin/bash
|
|
loop: "{{ markdown_find.files|map(attribute='path')|list }}"
|
|
loop_control:
|
|
loop_var: zj_markdown
|
|
changed_when: false
|