Skip to content

Commit 1610d85

Browse files
committed
tools: do not swallow error in lint-nix workflow
1 parent a62f641 commit 1610d85

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/linters.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,13 @@ jobs:
151151
sparse-checkout-cone-mode: false
152152
- uses: cachix/install-nix-action@2126ae7fc54c9df00dd18f7f18754393182c73cd # v31.9.1
153153
- name: Lint Nix files
154+
id: lint-step
154155
run: |
155156
nix-shell -I nixpkgs=./tools/nix/pkgs.nix -p 'nixfmt-tree' --run '
156157
treefmt --quiet --ci
157-
' || git --no-pager diff --exit-code
158+
'
159+
- run: git --no-pager diff
160+
if: ${{ failure() && steps.lint-step.conclusion == 'failure' }}
158161

159162
lint-py:
160163
if: github.event.pull_request.draft == false

0 commit comments

Comments
 (0)