Skip to content

Commit 8197519

Browse files
committed
ci(renovate): add workflow and configuration for dependency updates
- Introduces a Renovate GitHub Action to automate dependency updates. - Configures daily runs at 5 AM UTC and allows manual execution. - Defines settings for managing NuGet and GitHub Actions dependencies, including auto-merge capabilities and a dependency dashboard. - Establishes group rules for grouping dependencies and setting management limits.
1 parent 9538547 commit 8197519

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

.github/workflows/renovate.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Renovate
2+
3+
on:
4+
schedule:
5+
- cron: '0 5 * * *' # daily at 5am UTC
6+
workflow_dispatch:
7+
8+
jobs:
9+
renovate:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repo
13+
uses: actions/checkout@v4
14+
15+
- name: Run Renovate
16+
uses: renovatebot/[email protected]
17+
with:
18+
token: ${{ secrets.ES_GITHUB_PAT }}

renovate.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"extends": ["config:recommended"],
3+
"dependencyDashboard": true,
4+
"labels": ["area-dependencies"],
5+
"enabledManagers": ["nuget", "github-actions"],
6+
"packageRules": [
7+
{
8+
"matchManagers": ["nuget"],
9+
"matchPaths": ["src/**"],
10+
"groupName": "all-dependencies",
11+
"automerge": true,
12+
"labels": ["area-dependencies"]
13+
},
14+
{
15+
"matchManagers": ["github-actions"],
16+
"matchPaths": [".github/workflows/**"],
17+
"groupName": "all-dependencies",
18+
"automerge": true,
19+
"labels": ["area-dependencies"]
20+
}
21+
],
22+
"automergeType": "pr",
23+
"prHourlyLimit": 15,
24+
"prConcurrentLimit": 15
25+
}
26+

0 commit comments

Comments
 (0)