diff options
author | pennae <github@quasiparticle.net> | 2023-02-25 20:11:14 +0100 |
---|---|---|
committer | pennae <github@quasiparticle.net> | 2023-03-15 11:07:54 +0100 |
commit | 4a694fc50007076566a204d6ea623fd5fc7ddbfa (patch) | |
tree | 371cbf157bea960e968bb7ff1e61969f55d636db /.github/workflows | |
parent | 91e49d60b22b4afdac6f3979e296c17cdc01bb12 (diff) |
maintainers: add script and workflows to check sortedness
the script can output a list of sed commands to create the order it expects to find. this was mainly useful for initially sorting the list, but we'll keep it here for later reference. Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/check-maintainers-sorted.yaml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/check-maintainers-sorted.yaml b/.github/workflows/check-maintainers-sorted.yaml new file mode 100644 index 0000000000000..73987f9b91682 --- /dev/null +++ b/.github/workflows/check-maintainers-sorted.yaml @@ -0,0 +1,21 @@ +name: "Check that maintainer list is sorted" + +on: + pull_request: + paths: + - 'maintainers/maintainer-list.nix' +permissions: + contents: read + +jobs: + nixos: + runs-on: ubuntu-latest + if: github.repository_owner == 'NixOS' + steps: + - uses: actions/checkout@v3 + - uses: cachix/install-nix-action@v19 + 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 |