From 4a694fc50007076566a204d6ea623fd5fc7ddbfa Mon Sep 17 00:00:00 2001 From: pennae Date: Sat, 25 Feb 2023 20:11:14 +0100 Subject: maintainers: add script and workflows to check sortedness MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .github/workflows/check-maintainers-sorted.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/check-maintainers-sorted.yaml (limited to '.github/workflows') 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 -- cgit 1.4.1