tools: do not swallow error in lint-nix workflow

PR-URL: https://github.com/nodejs/node/pull/62292
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tierney Cyren <hello@bnb.im>
This commit is contained in:
Antoine du Hamel committed 2026-03-30 17:20:26 +02:00
1 parent 757719d2af
commit 7a2fcc6d41
1 file changed
+6 -1
+6 -1
View File
@@ -154,7 +154,12 @@ jobs:
run: |
nix-shell -I nixpkgs=./tools/nix/pkgs.nix -p 'nixfmt-tree' --run '
treefmt --quiet --ci
' || git --no-pager diff --exit-code
' && EXIT_CODE="$?" || EXIT_CODE="$?"
if [ "$EXIT_CODE" != "0" ]
then
git --no-pager diff || true
exit "$EXIT_CODE"
fi
lint-py:
if: github.event.pull_request.draft == false