mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
fix cron trigger paths
This commit is contained in:
parent
a8bfcdf17f
commit
8cd7a0170c
2 changed files with 12 additions and 4 deletions
8
.github/workflows/niv-update.yml
vendored
8
.github/workflows/niv-update.yml
vendored
|
|
@ -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 * * *
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue