From 09f00391acfa870e9b3d5b90859ee8e09074065f Mon Sep 17 00:00:00 2001 From: notohh Date: Sun, 18 Jun 2023 18:27:22 -0400 Subject: [PATCH] ci: testing conditionals --- .woodpecker/checks.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.woodpecker/checks.yml b/.woodpecker/checks.yml index 04fffac..0f37fbf 100644 --- a/.woodpecker/checks.yml +++ b/.woodpecker/checks.yml @@ -1,11 +1,19 @@ +variables: + - &when_path + - "*.nix" + pipeline: check: image: nixos/nix commands: - echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf - nix flake check + when: + path: *when_path fmt: image: nixos/nix commands: - echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf - nix run nixpkgs#alejandra -- -c . + when: + path: *when_path