Skip to content

Commit 40161d5

Browse files
ci: add Renovate configuration for automated dependency updates
1 parent ef91c6a commit 40161d5

2 files changed

Lines changed: 61 additions & 0 deletions

File tree

.github/renovate.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"extends": ["config:recommended"],
3+
"platform": "github",
4+
"repositories": ["velopulent/cms"],
5+
"onboarding": false,
6+
"dependencyDashboard": true,
7+
"prConcurrentLimit": 4,
8+
"packageRules": [
9+
{
10+
"description": "Group all Bun dependencies",
11+
"matchManagers": ["bun"],
12+
"groupName": "Bun dependencies",
13+
"separateMajorMinor": false
14+
},
15+
{
16+
"description": "Group all Rust dependencies",
17+
"matchManagers": ["cargo"],
18+
"groupName": "Rust dependencies",
19+
"separateMajorMinor": false
20+
},
21+
{
22+
"description": "Group all GitHub Actions",
23+
"matchManagers": ["github-actions"],
24+
"groupName": "GitHub Actions",
25+
"separateMajorMinor": false
26+
},
27+
{
28+
"description": "Group all Docker dependencies",
29+
"matchManagers": ["dockerfile", "docker-compose"],
30+
"groupName": "Docker dependencies",
31+
"separateMajorMinor": false
32+
}
33+
]
34+
}

.github/workflows/renovate.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Renovate
2+
3+
on:
4+
schedule:
5+
# 06:30 UTC every Monday.
6+
- cron: "30 6 * * 1"
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
12+
concurrency:
13+
group: renovate
14+
cancel-in-progress: false
15+
16+
jobs:
17+
renovate:
18+
name: Update dependencies
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
22+
with:
23+
persist-credentials: false
24+
- uses: renovatebot/github-action@22e0a16091fc706b04affe6ae53d5e3358ac4023 # v46.1.19
25+
with:
26+
configurationFile: .github/renovate.json
27+
token: ${{ secrets.RENOVATE_TOKEN }}

0 commit comments

Comments
 (0)