2021-05-28 09:39:13 +00:00
|
|
|
name: NixOS manual checks
|
|
|
|
|
2021-06-04 09:07:49 +00:00
|
|
|
permissions: read-all
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
on:
|
2021-06-04 09:07:49 +00:00
|
|
|
pull_request_target:
|
2021-05-28 09:39:13 +00:00
|
|
|
branches-ignore:
|
|
|
|
- 'release-**'
|
|
|
|
paths:
|
|
|
|
- 'nixos/**/*.xml'
|
|
|
|
- 'nixos/**/*.md'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
tests:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: github.repository_owner == 'NixOS'
|
|
|
|
steps:
|
2022-03-05 16:20:37 +00:00
|
|
|
- uses: actions/checkout@v3
|
2021-06-04 09:07:49 +00:00
|
|
|
with:
|
|
|
|
# pull_request_target checks out the base branch by default
|
|
|
|
ref: refs/pull/${{ github.event.pull_request.number }}/merge
|
2022-10-21 18:38:19 +00:00
|
|
|
- uses: cachix/install-nix-action@v18
|
2021-05-28 09:39:13 +00:00
|
|
|
- name: Check DocBook files generated from Markdown are consistent
|
|
|
|
run: |
|
|
|
|
nixos/doc/manual/md-to-db.sh
|
2022-07-14 12:49:19 +00:00
|
|
|
git diff --exit-code || {
|
|
|
|
echo
|
|
|
|
echo 'Generated manual files are out of date.'
|
|
|
|
echo 'Please run'
|
|
|
|
echo
|
|
|
|
echo ' nixos/doc/manual/md-to-db.sh'
|
|
|
|
echo
|
|
|
|
exit 1
|
|
|
|
}
|