sanitize strings for hydra url

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
ahuston-0 2024-04-20 15:48:20 -04:00 committed by Alice Huston
parent 7058a9fc13
commit e0d6b9169e

View File

@ -56,7 +56,7 @@ let
null null
else else
{ {
name = "branch-${name}"; name = (builtins.replaceStrings [ "/" ] [ "-" ] "branch-${name}");
value = makeJob { value = makeJob {
description = "Branch ${name}"; description = "Branch ${name}";
flake = "git+ssh://git@github.com/${repo}?ref=${ref}"; flake = "git+ssh://git@github.com/${repo}?ref=${ref}";