generated from opensafely-core/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (30 loc) · 1.07 KB
/
check-docs.yml
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
---
name: Check documentation
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
jobs:
documentation:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- uses: opensafely-core/setup-action@v1
with:
install-just: true
python-version: "3.11"
cache-dependency-path: requirements.*.txt
- name: Check generated docs are up-to-date
run: just docs-check-generated-docs-are-current
# This check becomes somewhat redundant if we fix up the Cloudflare Pages preview
# to work with Dependabot, because the deployment will also do the build.
# See https://github.com/opensafely/documentation/issues/930 which documents this problem.
#
# However, for any PR, Cloudflare Pages previews sometimes fail for mysterious reasons,
# and this requires logging into Cloudflare Pages to inspect.
# So it is perhaps useful to distinguish a Cloudflare failure with an actual issue.
- name: Check docs build
run: just docs-build