Skip to content

Commit 0404f0b

Browse files
committed
fixup! tools: do not swallow error in lint-nix workflow
1 parent 1610d85 commit 0404f0b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/linters.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,12 @@ jobs:
155155
run: |
156156
nix-shell -I nixpkgs=./tools/nix/pkgs.nix -p 'nixfmt-tree' --run '
157157
treefmt --quiet --ci
158-
'
159-
- run: git --no-pager diff
160-
if: ${{ failure() && steps.lint-step.conclusion == 'failure' }}
158+
' && EXIT_CODE="$?" || EXIT_CODE="$?"
159+
if [ "$EXIT_CODE" != "0" ]
160+
then
161+
git --no-pager diff || true
162+
exit "$EXIT_CODE"
163+
fi
161164
162165
lint-py:
163166
if: github.event.pull_request.draft == false

0 commit comments

Comments
 (0)