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:
parent
22a10e158f
commit
bd8aa2eb08
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue