Skip to content

Commit cffded3

Browse files
michalChrobotNoelStephensUnity
andauthoredFeb 6, 2025
chore: enabling renovate bot on develop (#3192)
* Renovate setup files * Corrected cron and comment * Added renovate configuration targeting both develop branches * Update renovate.json5 --------- Co-authored-by: Noel Stephens <noel.stephens@unity3d.com>
1 parent d9a09a3 commit cffded3

File tree

3 files changed

+108
-0
lines changed

3 files changed

+108
-0
lines changed
 

‎.github/renovate.json5

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"baseBranches": ["develop", "develop-2.0.0"],
3+
4+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
5+
"extends": [
6+
"local>unity/renovate-config"
7+
],
8+
"prConcurrentLimit": 100,
9+
// Ignore commits produced by github actions workflows
10+
"gitIgnoredAuthors": ["githubaction@githubaction.com"],
11+
"ignorePaths": [
12+
"**/node_modules/**",
13+
// Don't renovate files in special folders using ~ as suffix
14+
"**/*~/**"
15+
],
16+
"packageRules": [
17+
// Run unity-upm-project and unity-upm-package only on weekends to reduce PR noise
18+
// Also ensure dependencies won't be downgraded when they don't exist in the public repositories
19+
{
20+
"matchManagers": [
21+
"unity-upm-project",
22+
"unity-upm-package"
23+
],
24+
"enabled": "true",
25+
"schedule": [
26+
"every weekend"
27+
],
28+
"rollbackPrs": false
29+
},
30+
31+
// Enable automerge for Bokken image updates
32+
{
33+
"matchDatasources": ["unity-bokken"],
34+
"automerge": false,
35+
},
36+
],
37+
}
+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This workflow is for validating the Renovate configuration and docker image
2+
# updates for it.
3+
name: Renovate Validation
4+
on:
5+
workflow_dispatch:
6+
inputs:
7+
log-level:
8+
type: choice
9+
description: Select log level for Renovate
10+
options:
11+
- trace
12+
- debug
13+
- info
14+
- warn
15+
- error
16+
default: info
17+
required: false
18+
pull_request:
19+
paths:
20+
# we trigger validation on any changes to the renovate workflow files
21+
- .github/workflows/renovate*.yml
22+
# as well as for any possible location for the renovate config file
23+
- .github/renovate.json?
24+
25+
26+
jobs:
27+
renovate-validation:
28+
# The reusable workflow will be updated by renovate if there's a new version
29+
uses: Unity-Technologies/renovate-workflows/.github/workflows/run.yml@v5.0.0
30+
with:
31+
# This is the image that contains our custom renovate and will be auto
32+
# updated by Renovate itself.
33+
image: europe-docker.pkg.dev/unity-cds-services-prd/ds-docker/renovate:10.1.3@sha256:fdeed7bb524bd67611eb91ee1a5e990c8c73ed62c84a0cd5ef66c87eb5fd0d70
34+
dry-run: full
35+
log-level: ${{ github.event.inputs.log-level }}
36+
secrets:
37+
renovate-auth-secret: ${{ secrets.RENOVATE_AUTH_SECRET }}
38+
github-com-token: ${{ secrets.GH_COM_TOKEN }}

‎.github/workflows/renovate.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This workflow runs Renovate against the current repo and will create PRs with outdated dependencies.
2+
name: Renovate
3+
4+
on:
5+
workflow_dispatch:
6+
inputs:
7+
log-level:
8+
type: choice
9+
description: Select log level for Renovate
10+
options:
11+
- trace
12+
- debug
13+
- info
14+
- warn
15+
- error
16+
default: info
17+
required: false
18+
schedule:
19+
# Every 6 hours at the 6th minute.
20+
- cron: '06 */6 * * *'
21+
22+
jobs:
23+
renovate:
24+
# The reusable workflow will be updated by renovate if there's a new version
25+
uses: Unity-Technologies/renovate-workflows/.github/workflows/run.yml@v5.0.0
26+
with:
27+
# This is the image that contains our custom renovate and will be auto
28+
# updated by Renovate itself.
29+
image: europe-docker.pkg.dev/unity-cds-services-prd/ds-docker/renovate:10.1.3@sha256:fdeed7bb524bd67611eb91ee1a5e990c8c73ed62c84a0cd5ef66c87eb5fd0d70
30+
log-level: ${{ github.event.inputs.log-level }}
31+
secrets:
32+
renovate-auth-secret: ${{ secrets.RENOVATE_AUTH_SECRET }}
33+
github-com-token: ${{ secrets.GH_COM_TOKEN }}

0 commit comments

Comments
 (0)
Failed to load comments.