fix double read
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
parent
95e8c02042
commit
801093bfc4
@ -24,8 +24,8 @@ let
|
|||||||
contents = builtins.toJSON contents;
|
contents = builtins.toJSON contents;
|
||||||
};
|
};
|
||||||
|
|
||||||
prs = builtins.fromJSON (builtins.readFile pulls);
|
prs = readJSONFile pulls;
|
||||||
refs = builtins.fromJSON (builtins.readFile branches);
|
refs = readJSONFile branches;
|
||||||
repo = "ahuston-0/nix-dotfiles-hydra";
|
repo = "ahuston-0/nix-dotfiles-hydra";
|
||||||
|
|
||||||
makeJob =
|
makeJob =
|
||||||
@ -65,8 +65,8 @@ let
|
|||||||
jobOfPR = id: info: {
|
jobOfPR = id: info: {
|
||||||
name = "pr-${id}";
|
name = "pr-${id}";
|
||||||
value = makeJob {
|
value = makeJob {
|
||||||
description = "PR ${id}: ${info.${id}.title}";
|
description = "PR ${id}: ${info.title}";
|
||||||
flake = "git+ssh://git@github.com/${info.${id}.head.repo.full_name}?ref=${info.${id}.head.ref}";
|
flake = "git+ssh://git@github.com/${info.head.repo.full_name}?ref=${info.head.ref}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
attrsToList = l: builtins.attrValues (builtins.mapAttrs (name: value: { inherit name value; }) l);
|
attrsToList = l: builtins.attrValues (builtins.mapAttrs (name: value: { inherit name value; }) l);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user