2020-12-23 05:56:46 +00:00
|
|
|
name: NixOS manual checks
|
|
|
|
|
2021-05-27 14:49:11 +01:00
|
|
|
permissions: read-all
|
|
|
|
|
2020-12-23 05:56:46 +00:00
|
|
|
on:
|
2021-05-27 14:49:11 +01:00
|
|
|
pull_request_target:
|
2020-12-23 05:56:46 +00:00
|
|
|
branches-ignore:
|
|
|
|
- 'release-**'
|
|
|
|
paths:
|
|
|
|
- 'nixos/**/*.xml'
|
|
|
|
- 'nixos/**/*.md'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
tests:
|
|
|
|
runs-on: ubuntu-latest
|
2021-05-24 23:33:32 +01:00
|
|
|
if: github.repository_owner == 'NixOS'
|
2020-12-23 05:56:46 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-05-27 14:49:11 +01:00
|
|
|
with:
|
|
|
|
# pull_request_target checks out the base branch by default
|
|
|
|
ref: refs/pull/${{ github.event.pull_request.number }}/merge
|
2021-11-22 23:21:06 +00:00
|
|
|
- uses: cachix/install-nix-action@v16
|
2020-12-23 05:56:46 +00:00
|
|
|
- name: Check DocBook files generated from Markdown are consistent
|
|
|
|
run: |
|
|
|
|
nixos/doc/manual/md-to-db.sh
|
|
|
|
git diff --exit-code
|