iNav to INAV
[inav.git] / .github / workflows / docs.yml
blob20f5379c3d88c8bf9c7dde94decb6da92e4d119b
1 name: Make sure docs are updated
2 on:
3   pull_request:
4     paths:
5       - src/main/fc/settings.yaml
6       - docs/Settings.md
7   push:
8     paths:
9       - src/main/fc/settings.yaml
10       - docs/Settings.md
12 jobs:
13   settings_md:
14     runs-on: ubuntu-18.04
16     steps:
17       - uses: actions/checkout@v2
18       - name: Install dependencies
19         run: sudo apt-get update && sudo apt-get -y install python3-yaml
20       - name: Check that Settings.md is up to date
21         run: |
22           cp docs/Settings.md{,.ci}
23           python3 src/utils/update_cli_docs.py -q
24           if ! diff -q docs/Settings.md{,.ci} >/dev/null; then
25             echo "::error ::\"docs/Settings.md\" is not up to date, please run \"src/utils/update_cli_docs.py\""
26             exit 1
27           fi