Skip to content

Commit f867c07

Browse files
authored
Update dependabot and pre-commit-update cron timing (#134)
1 parent cf03b59 commit f867c07

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

.github/dependabot.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
21
version: 2
2+
3+
multi-ecosystem-groups:
4+
dependencies:
5+
schedule:
6+
# Check for updates on the first Sunday of every month, 8PM UTC
7+
interval: "cron"
8+
cronjob: "0 20 * * sun#1"
9+
310
updates:
411
- package-ecosystem: "github-actions"
512
directory: "/"
6-
schedule:
7-
# Check for updates on Sunday, 8PM UTC
8-
interval: "weekly"
9-
day: "sunday"
10-
time: "20:00"
13+
patterns: ["*"]
14+
multi-ecosystem-group: "dependencies"
1115

1216
- package-ecosystem: "pip"
1317
directory: "/"
14-
schedule:
15-
# Check for updates on Sunday, 8PM UTC
16-
interval: "weekly"
17-
day: "sunday"
18-
time: "20:00"
18+
patterns: ["*"]
19+
multi-ecosystem-group: "dependencies"

.github/workflows/pre-commit-update.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ name: Update pre-commit
22

33
on:
44
schedule:
5-
- cron: "0 20 * * SUN" # Sunday @ 2000 UTC
5+
- cron: "0 20 1-7 * */7" # First Sunday of the month @ 2000 UTC
6+
# Reading this expression: At 20:00 on every day-of-month from 1 through 7 if
7+
# it's on every 7th day-of-week, i.e. any one of the first seven days of the
8+
# month as long as it is a Sunday.
69
workflow_dispatch:
710

811
jobs:

0 commit comments

Comments
 (0)