-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 983 Bytes
/
lint-docs.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: build-docs
on:
workflow_dispatch:
pull_request:
branches:
- main
jobs:
build-docs:
permissions:
contents: read
uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-pr.yml@main
with:
init-lenient: false
init-fail-on-error: true
lint-docs:
name: Lint Docs
runs-on: ubuntu-latest
permissions:
contents: read
needs:
- build-docs
steps:
- uses: actions/download-artifact@v4
with:
name: ${{ needs.build-docs.outputs.artifact-name }}
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install antsibull-docs
run: pip install antsibull-docs
- name: Lint Docs
run: |
antsibull-docs lint-collection-docs \
--plugin-docs \
--validate-collection-refs=all \
--disallow-unknown-collection-refs .