Skip to content

Commit a5fb7d8

Browse files
committed
👷 [open-zaak/open-zaak#1649] Job to check if docs changed
1 parent 3abab81 commit a5fb7d8

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/ci.yml

+25
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,31 @@ jobs:
102102
- name: Publish coverage report
103103
uses: codecov/codecov-action@v3
104104

105+
docs:
106+
runs-on: ubuntu-latest
107+
name: Documentation build
108+
109+
steps:
110+
- uses: actions/checkout@v4
111+
- uses: actions/setup-python@v5
112+
with:
113+
python-version: '3.11'
114+
cache: 'pip'
115+
cache-dependency-path: 'requirements/*.txt'
116+
- name: Install dependencies
117+
run: pip install -r requirements/ci.txt pytest
118+
- name: Generate environment variable documentation using OAf and check if it was updated
119+
run: |
120+
python src/manage.py generate_envvar_docs --file docs/installation/config.rst --exclude-group Celery
121+
changes=$(git diff docs/installation/config.rst)
122+
if [ ! -z "$changes" ]; then
123+
echo $changes
124+
echo "Please update the environment documentation by running \`python src/manage.py generate_envvar_docs --file docs/installation/config.rst --exclude-group Celery\`"
125+
exit 1
126+
fi
127+
env:
128+
DJANGO_SETTINGS_MODULE: openklant.conf.ci
129+
105130
docker:
106131
needs: tests
107132
name: Build Docker image

0 commit comments

Comments
 (0)