Skip to content

Commit 28902d3

Browse files
authored
Merge pull request #212 from hercules-ci/flake-updater
dev: Add flake-update
2 parents 51ed705 + 57516c3 commit 28902d3

File tree

2 files changed

+152
-7
lines changed

2 files changed

+152
-7
lines changed

flake.lock

+132-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+20-6
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@
66
haskell-flake.url = "github:srid/haskell-flake/0.1.0";
77
flake-parts.url = "github:hercules-ci/flake-parts";
88
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
9+
hercules-ci-effects.url = "github:hercules-ci/hercules-ci-effects";
10+
hercules-ci-effects.inputs.nixpkgs.follows = "nixpkgs";
911
};
1012

1113
outputs = inputs@{ self, flake-parts, ... }:
1214
flake-parts.lib.mkFlake { inherit inputs; } ({ config, lib, extendModules, ... }: {
1315
imports = [
1416
inputs.haskell-flake.flakeModule
17+
inputs.hercules-ci-effects.flakeModule
1518
inputs.flake-parts.flakeModules.easyOverlay
1619
./docs/flake-module.nix
1720
./tests/flake-module.nix
@@ -63,6 +66,23 @@
6366
];
6467
});
6568
};
69+
70+
hercules-ci.flake-update = {
71+
enable = true;
72+
autoMergeMethod = "merge";
73+
when = {
74+
hour = [ 2 ];
75+
dayOfMonth = [ 5 ];
76+
};
77+
};
78+
79+
herculesCI.ciSystems = [
80+
# "aarch64-darwin"
81+
# "aarch64-linux"
82+
"x86_64-darwin"
83+
"x86_64-linux"
84+
];
85+
6686
flake = {
6787
debug = { inherit inputs config lib; };
6888

@@ -79,12 +99,6 @@
7999
in composition.config.out.dockerComposeYaml;
80100
};
81101
nixosModules.arion = ./nixos-module.nix;
82-
herculesCI.ciSystems = [
83-
# "aarch64-darwin"
84-
# "aarch64-linux"
85-
"x86_64-darwin"
86-
"x86_64-linux"
87-
];
88102
};
89103
});
90104
}

0 commit comments

Comments
 (0)