gerrit01: adjustments for master → main OWS

Due to rename, we need a `mkNixpkgsJob` slightly more complicated.

Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
This commit is contained in:
raito 2024-07-25 23:35:06 +02:00
parent 22a10e158f
commit bd8aa2eb08

View file

@ -47,11 +47,11 @@
}; };
bagel.nixpkgs.one-way-sync = bagel.nixpkgs.one-way-sync =
let let
mkNixpkgsJob = { timer, branchName }: { mkNixpkgsJob = { timer, branchName, localRefspec ? null }: {
name = "nixpkgs-${branchName}"; name = "nixpkgs-${branchName}";
fromUri = "https://github.com/NixOS/nixpkgs"; fromUri = "https://github.com/NixOS/nixpkgs";
fromRefspec = branchName; fromRefspec = branchName;
localRefspec = branchName; localRefspec = if localRefspec != null then localRefspec else branchName;
inherit timer; inherit timer;
}; };
in in
@ -63,7 +63,8 @@
branches."refs/heads/main" = mkNixpkgsJob { branches."refs/heads/main" = mkNixpkgsJob {
timer = "hourly"; timer = "hourly";
branchName = "main"; branchName = "master";
localRefspec = "main";
}; };
branches."refs/heads/staging" = mkNixpkgsJob { branches."refs/heads/staging" = mkNixpkgsJob {