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: pull_request:
paths: paths:
- nix/* - nix/*
- ci/* - default.nix
- ./ci/niv-cron.nix
- .github/workflows/niv-update.yml
push: push:
paths: paths:
- nix/* - nix/*
- ci/* - default.nix
- ./ci/niv-cron.nix
- .github/workflows/niv-update.yml
schedule: schedule:
- cron: 0 */6 * * * - cron: 0 */6 * * *

View file

@ -1,4 +1,4 @@
{ lib, channels, ... }: { lib, channels, config, ... }:
with lib; { with lib; {
name = "niv-update"; name = "niv-update";
ci.gh-actions.enable = true; ci.gh-actions.enable = true;
@ -9,7 +9,11 @@ with lib; {
gh-actions = { gh-actions = {
on = let on = let
paths = [ "nix/*" "ci/*" ]; paths = [
"nix/*" # niv and sources.json
"default.nix" # sourceCache
config.ci.configPath config.ci.gh-actions.path
];
in { in {
push = { push = {
inherit paths; inherit paths;