Skip to content
Snippets Groups Projects
Unverified Commit 7a89b9f7 authored by Thomas Woerner's avatar Thomas Woerner Committed by GitHub
Browse files

Merge pull request #427 from rjeffman/ci_ansible-doc-test_action

Add action to verify Ansible documentation on each commit or PR.
parents e16c3ffd 18d90c70
No related branches found
No related tags found
No related merge requests found
---
name: Verify Ansible documentation.
on:
- push
- pull_request
jobs:
check_docs:
name: Check Ansible Documentation.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Run ansible-doc-test
run: ANSIBLE_LIBRARY="." python utils/ansible-doc-test roles plugins
......@@ -124,7 +124,10 @@ def ansible_doc_test(path, verbose):
# All roles and plugins
roles = os.listdir("roles/")
for _role in roles:
if not os.path.isdir("roles/%s" % _role):
if (
not os.path.isdir("roles/%s" % _role)
or not os.path.isdir("roles/%s/library" % _role)
):
continue
modules = os.listdir("roles/%s/library" % _role)
for _module in modules:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment