feat(module/workflows): Make the build check optional

This commit is contained in:
Tom Hubrecht 2024-12-30 12:13:27 +01:00
parent 9d55c72d97
commit d3f88b1879
Signed by: thubrecht
SSH key fingerprint: SHA256:r+nK/SIcWlJ0zFZJGHtlAoRwq1Rm+WcKAm5ADYMoQPc

View file

@ -56,7 +56,8 @@ let
install =
name: value:
let
result = generate name value;
result =
if cfg.buildCheck then generate name value else (pkgs.formats.yaml { }).generate name value;
path = ".${cfg.platform}/workflows/${name}.yaml";
in
''
@ -111,6 +112,15 @@ in
The source of the project.
'';
};
buildCheck = mkOption {
type = bool;
default = true;
description = ''
Check that the workflow are correct while building them.
It introduces a dependency on the `rootSrc` directory.
'';
};
};
config = {