Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7a2fcc6

Browse filesBrowse files
committed
tools: do not swallow error in lint-nix workflow
PR-URL: #62292 Reviewed-By: René <contact.9a5d6388@renegade334.me.uk> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tierney Cyren <hello@bnb.im>
1 parent 757719d commit 7a2fcc6
Copy full SHA for 7a2fcc6

1 file changed

+6-1Lines changed: 6 additions & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/linters.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/linters.yml
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,12 @@ jobs:
154154
run: |
155155
nix-shell -I nixpkgs=./tools/nix/pkgs.nix -p 'nixfmt-tree' --run '
156156
treefmt --quiet --ci
157-
' || git --no-pager diff --exit-code
157+
' && EXIT_CODE="$?" || EXIT_CODE="$?"
158+
if [ "$EXIT_CODE" != "0" ]
159+
then
160+
git --no-pager diff || true
161+
exit "$EXIT_CODE"
162+
fi
158163
159164
lint-py:
160165
if: github.event.pull_request.draft == false

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.