2023-02-25 14:11:14 -05:00
|
|
|
name: "Check that maintainer list is sorted"
|
|
|
|
|
|
|
|
on:
|
2023-03-18 08:16:10 -04:00
|
|
|
pull_request_target:
|
2023-02-25 14:11:14 -05:00
|
|
|
paths:
|
|
|
|
- 'maintainers/maintainer-list.nix'
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
nixos:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: github.repository_owner == 'NixOS'
|
|
|
|
steps:
|
2024-06-29 18:01:52 -04:00
|
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
2023-03-18 08:16:10 -04:00
|
|
|
with:
|
|
|
|
# pull_request_target checks out the base branch by default
|
|
|
|
ref: refs/pull/${{ github.event.pull_request.number }}/merge
|
2024-04-06 18:38:33 -04:00
|
|
|
# Only these directories to perform the check
|
|
|
|
sparse-checkout: |
|
|
|
|
lib
|
|
|
|
maintainers
|
2024-03-11 07:39:15 -04:00
|
|
|
- uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26
|
2023-02-25 14:11:14 -05:00
|
|
|
with:
|
|
|
|
# explicitly enable sandbox
|
|
|
|
extra_nix_config: sandbox = true
|
|
|
|
- name: Check that maintainer-list.nix is sorted
|
|
|
|
run: nix-instantiate --eval maintainers/scripts/check-maintainers-sorted.nix
|