fix cron trigger paths

This commit is contained in:
arcnmx 2021-05-19 08:54:19 -07:00
parent a8bfcdf17f
commit 8cd7a0170c
2 changed files with 12 additions and 4 deletions

View file

@ -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 * * *

View file

@ -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;