forked from lix-project/hydra
hydra-eval-jobs: Use 'checks' output if there is no 'hydraJobs' output
This commit is contained in:
parent
9a8880fd28
commit
7936a29364
|
@ -255,7 +255,9 @@ int main(int argc, char * * argv)
|
||||||
|
|
||||||
auto aHydraJobs = vOutputs->attrs->get(state.symbols.create("hydraJobs"));
|
auto aHydraJobs = vOutputs->attrs->get(state.symbols.create("hydraJobs"));
|
||||||
if (!aHydraJobs)
|
if (!aHydraJobs)
|
||||||
throw Error("flake '%s' does not provide any Hydra jobs", flakeRef);
|
aHydraJobs = vOutputs->attrs->get(state.symbols.create("checks"));
|
||||||
|
if (!aHydraJobs)
|
||||||
|
throw Error("flake '%s' does not provide any Hydra jobs or checks", flakeRef);
|
||||||
|
|
||||||
v = *(*aHydraJobs)->value;
|
v = *(*aHydraJobs)->value;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue