mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
d2e6195f5b
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 17 to 18. - [Release notes](https://github.com/cachix/install-nix-action/releases) - [Commits](https://github.com/cachix/install-nix-action/compare/v17...v18)
35 lines
861 B
YAML
35 lines
861 B
YAML
name: NixOS manual checks
|
|
|
|
permissions: read-all
|
|
|
|
on:
|
|
pull_request_target:
|
|
branches-ignore:
|
|
- 'release-**'
|
|
paths:
|
|
- 'nixos/**/*.xml'
|
|
- 'nixos/**/*.md'
|
|
|
|
jobs:
|
|
tests:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository_owner == 'NixOS'
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
# pull_request_target checks out the base branch by default
|
|
ref: refs/pull/${{ github.event.pull_request.number }}/merge
|
|
- uses: cachix/install-nix-action@v18
|
|
- name: Check DocBook files generated from Markdown are consistent
|
|
run: |
|
|
nixos/doc/manual/md-to-db.sh
|
|
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
|
|
}
|