We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
lint-nix
1 parent 1610d85 commit 0404f0bCopy full SHA for 0404f0b
1 file changed
.github/workflows/linters.yml
@@ -155,9 +155,12 @@ jobs:
155
run: |
156
nix-shell -I nixpkgs=./tools/nix/pkgs.nix -p 'nixfmt-tree' --run '
157
treefmt --quiet --ci
158
- '
159
- - run: git --no-pager diff
160
- if: ${{ failure() && steps.lint-step.conclusion == 'failure' }}
+ ' && EXIT_CODE="$?" || EXIT_CODE="$?"
+ if [ "$EXIT_CODE" != "0" ]
+ then
161
+ git --no-pager diff || true
162
+ exit "$EXIT_CODE"
163
+ fi
164
165
lint-py:
166
if: github.event.pull_request.draft == false
0 commit comments