ci: fix pathing?

This commit is contained in:
notohh 2023-06-18 18:44:14 -04:00
parent a84301ab15
commit 15a8382be7
Signed by: notohh
GPG key ID: BD47506D475EE86D

View file

@ -1,7 +1,3 @@
variables:
- &when_path
- "*.nix"
pipeline:
check:
image: nixos/nix
@ -9,11 +5,15 @@ pipeline:
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
- nix flake check
when:
path: *when_path
path:
include: [ '*.nix' ]
exclude: [ '*.md', '*.yml' ]
fmt:
image: nixos/nix
commands:
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
- nix run nixpkgs#alejandra -- -c .
when:
path: *when_path
path:
include: [ '*.nix' ]
exclude: [ '*.md', '*.yml' ]