ci: fix pathing?
This commit is contained in:
parent
a84301ab15
commit
15a8382be7
1 changed files with 6 additions and 6 deletions
|
@ -1,7 +1,3 @@
|
||||||
variables:
|
|
||||||
- &when_path
|
|
||||||
- "*.nix"
|
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
check:
|
check:
|
||||||
image: nixos/nix
|
image: nixos/nix
|
||||||
|
@ -9,11 +5,15 @@ pipeline:
|
||||||
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
||||||
- nix flake check
|
- nix flake check
|
||||||
when:
|
when:
|
||||||
path: *when_path
|
path:
|
||||||
|
include: [ '*.nix' ]
|
||||||
|
exclude: [ '*.md', '*.yml' ]
|
||||||
fmt:
|
fmt:
|
||||||
image: nixos/nix
|
image: nixos/nix
|
||||||
commands:
|
commands:
|
||||||
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
||||||
- nix run nixpkgs#alejandra -- -c .
|
- nix run nixpkgs#alejandra -- -c .
|
||||||
when:
|
when:
|
||||||
path: *when_path
|
path:
|
||||||
|
include: [ '*.nix' ]
|
||||||
|
exclude: [ '*.md', '*.yml' ]
|
||||||
|
|
Loading…
Reference in a new issue