forked from openstack-k8s-operators/ci-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 981 Bytes
/
documentation.yml
File metadata and controls
39 lines (35 loc) · 981 Bytes
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
---
name: Documentation check
on: # noqa: yaml[truthy]
pull_request:
branches:
- main
- stable
paths:
- '**.md'
- '**.rst'
- '.github/workflows/**'
workflow_dispatch:
jobs:
build-and-check:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request_target' || github.event_name == 'pull_request' || github.event.comment.body == 'recheck'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
shell: bash
run: |
sudo apt update
sudo apt install make aspell-en \
python3-pip --no-install-recommends -y
pip3 install pyspelling mkdocs-pymdownx-material-extras
- name: Build documentation
shell: bash
run: >-
make docs;
- name: Check spelling
shell: bash
run: >-
pyspelling -c .spellcheck.yml -v
-n documentation -S "docs/_build/html/**/*.html"