github/workflows: add a workflow to check doc changes

Should hopefully avoid any accidents with stray characters and other
things. Only needs to run if something within DOCS changes.
This commit is contained in:
Dudemanguy 2023-09-23 23:52:04 -05:00
parent 155777fbd8
commit 3140f921dd
1 changed files with 24 additions and 0 deletions

24
.github/workflows/docs.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: docs
on:
push:
branches:
- master
- ci
- 'release/**'
paths:
- 'DOCS/**'
pull_request:
branches: [master]
paths:
- 'DOCS/**'
jobs:
commit-msg:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: docs
run: |
sudo apt-get install python3-docutils
rst2man --strip-elements-with-class=contents --halt=2 ./DOCS/man/mpv.rst mpv.1