diff --git a/default.nix b/default.nix index df7033c..647709e 100644 --- a/default.nix +++ b/default.nix @@ -38,6 +38,8 @@ let package = pkgs.reuse; }; + actions-validator = workflows.gitHook { stages = [ "pre-push" ]; }; + commitizen.enable = true; }; }; @@ -97,6 +99,12 @@ in in { shellHook = project.config.installationScript; + gitHook = recursiveUpdate { + enable = true; + name = "Actions validator"; + entry = getExe pkgs.action-validator; + files = "\\.${project.config.platform}/workflows/.*\\.ya?ml"; + }; }; lib = rec {