zuul-jobs/roles/markdownlint/tasks/main.yaml
Andreas Jaeger 7e04128a8b Capitalize task names
We capitalize the first word in task names in general - and when you
follow a log and suddenly see a single lower-case one flying along...

Fix those names that I could find and that are not variables etc.

Change-Id: I9ccde577413270d49fd790c41767b859366dc2f6
2020-05-16 17:46:17 +02:00

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