feat: Add a gitHook definition
This commit is contained in:
parent
d3f88b1879
commit
8815dfc28d
1 changed files with 8 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue