feat(module/workflows): Make the build check optional
This commit is contained in:
parent
9d55c72d97
commit
d3f88b1879
1 changed files with 11 additions and 1 deletions
|
@ -56,7 +56,8 @@ let
|
||||||
install =
|
install =
|
||||||
name: value:
|
name: value:
|
||||||
let
|
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";
|
path = ".${cfg.platform}/workflows/${name}.yaml";
|
||||||
in
|
in
|
||||||
''
|
''
|
||||||
|
@ -111,6 +112,15 @@ in
|
||||||
The source of the project.
|
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 = {
|
config = {
|
||||||
|
|
Loading…
Reference in a new issue