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 =
let
mkNixpkgsJob = { timer, branchName }: {
mkNixpkgsJob = { timer, branchName, localRefspec ? null }: {
name = "nixpkgs-${branchName}";
fromUri = "https://github.com/NixOS/nixpkgs";
fromRefspec = branchName;
localRefspec = branchName;
localRefspec = if localRefspec != null then localRefspec else branchName;
inherit timer;
};
in
@ -63,7 +63,8 @@
branches."refs/heads/main" = mkNixpkgsJob {
timer = "hourly";
branchName = "main";
branchName = "master";
localRefspec = "main";
};
branches."refs/heads/staging" = mkNixpkgsJob {