workflows/keep-sorted: make it fail

This never worked as intended, because it relies on "-o pipefail", which
is not set in GitHub Actions by default. It will be set when explicitly
selecting the shell as bash, though.

https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
This commit is contained in:
Wolfgang Walther 2025-05-05 21:09:33 +02:00
parent 1ad976ab10
commit b36d85b731
No known key found for this signature in database
GPG key ID: B39893FA5F65CAE1

View file

@ -36,5 +36,6 @@ jobs:
run: "nix-env -f '<nixpkgs>' -iAP keep-sorted jq"
- name: Check that Nix files are sorted
shell: bash
run: |
git ls-files | xargs keep-sorted --mode lint | jq --raw-output '.[] | "Please make sure any new entries in \(.path) are sorted alphabetically."'