fix: Fix nix fmt command to include **/*.nix argument
Co-authored-by: Jyumpp <11142390+Jyumpp@users.noreply.github.com>
This commit is contained in:
committed by
Hunter Halloran
parent
67b98d1447
commit
631e1a4037
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -51,9 +51,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Check formatting
|
- name: Check formatting
|
||||||
run: |
|
run: |
|
||||||
nix fmt
|
nix fmt **/*.nix
|
||||||
if ! git diff --quiet; then
|
if ! git diff --quiet; then
|
||||||
echo "::error::Code is not formatted. Please run 'nix fmt' locally."
|
echo "::error::Code is not formatted. Please run 'nix fmt **/*.nix' locally."
|
||||||
git diff
|
git diff
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user