diff --git a/.github/workflows/niv-update.yml b/.github/workflows/niv-update.yml index 19122da1..8237b5a9 100644 --- a/.github/workflows/niv-update.yml +++ b/.github/workflows/niv-update.yml @@ -92,10 +92,14 @@ name: niv-update pull_request: paths: - nix/* - - ci/* + - default.nix + - ./ci/niv-cron.nix + - .github/workflows/niv-update.yml push: paths: - nix/* - - ci/* + - default.nix + - ./ci/niv-cron.nix + - .github/workflows/niv-update.yml schedule: - cron: 0 */6 * * * diff --git a/ci/niv-cron.nix b/ci/niv-cron.nix index 68991f0c..4171d8d2 100644 --- a/ci/niv-cron.nix +++ b/ci/niv-cron.nix @@ -1,4 +1,4 @@ -{ lib, channels, ... }: +{ lib, channels, config, ... }: with lib; { name = "niv-update"; ci.gh-actions.enable = true; @@ -9,7 +9,11 @@ with lib; { gh-actions = { on = let - paths = [ "nix/*" "ci/*" ]; + paths = [ + "nix/*" # niv and sources.json + "default.nix" # sourceCache + config.ci.configPath config.ci.gh-actions.path + ]; in { push = { inherit paths;