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 authored and GitHub committed 2026-03-19 11:06:03 +00:00
1 parent 56aba88702
commit 4ee467f912
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