-
Notifications
You must be signed in to change notification settings - Fork 438
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
1 parent
d9a09a3
commit cffded3
Showing
3 changed files
with
108 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"baseBranches": ["develop", "develop-2.0.0"], | ||
|
||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"local>unity/renovate-config" | ||
], | ||
"prConcurrentLimit": 100, | ||
// Ignore commits produced by github actions workflows | ||
"gitIgnoredAuthors": ["[email protected]"], | ||
"ignorePaths": [ | ||
"**/node_modules/**", | ||
// Don't renovate files in special folders using ~ as suffix | ||
"**/*~/**" | ||
], | ||
"packageRules": [ | ||
// Run unity-upm-project and unity-upm-package only on weekends to reduce PR noise | ||
// Also ensure dependencies won't be downgraded when they don't exist in the public repositories | ||
{ | ||
"matchManagers": [ | ||
"unity-upm-project", | ||
"unity-upm-package" | ||
], | ||
"enabled": "true", | ||
"schedule": [ | ||
"every weekend" | ||
], | ||
"rollbackPrs": false | ||
}, | ||
|
||
// Enable automerge for Bokken image updates | ||
{ | ||
"matchDatasources": ["unity-bokken"], | ||
"automerge": false, | ||
}, | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# This workflow is for validating the Renovate configuration and docker image | ||
# updates for it. | ||
name: Renovate Validation | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
log-level: | ||
type: choice | ||
description: Select log level for Renovate | ||
options: | ||
- trace | ||
- debug | ||
- info | ||
- warn | ||
- error | ||
default: info | ||
required: false | ||
pull_request: | ||
paths: | ||
# we trigger validation on any changes to the renovate workflow files | ||
- .github/workflows/renovate*.yml | ||
# as well as for any possible location for the renovate config file | ||
- .github/renovate.json? | ||
|
||
|
||
jobs: | ||
renovate-validation: | ||
# The reusable workflow will be updated by renovate if there's a new version | ||
uses: Unity-Technologies/renovate-workflows/.github/workflows/[email protected] | ||
with: | ||
# This is the image that contains our custom renovate and will be auto | ||
# updated by Renovate itself. | ||
image: europe-docker.pkg.dev/unity-cds-services-prd/ds-docker/renovate:10.1.3@sha256:fdeed7bb524bd67611eb91ee1a5e990c8c73ed62c84a0cd5ef66c87eb5fd0d70 | ||
dry-run: full | ||
log-level: ${{ github.event.inputs.log-level }} | ||
secrets: | ||
renovate-auth-secret: ${{ secrets.RENOVATE_AUTH_SECRET }} | ||
github-com-token: ${{ secrets.GH_COM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# This workflow runs Renovate against the current repo and will create PRs with outdated dependencies. | ||
name: Renovate | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
log-level: | ||
type: choice | ||
description: Select log level for Renovate | ||
options: | ||
- trace | ||
- debug | ||
- info | ||
- warn | ||
- error | ||
default: info | ||
required: false | ||
schedule: | ||
# Every 6 hours at the 6th minute. | ||
- cron: '06 */6 * * *' | ||
|
||
jobs: | ||
renovate: | ||
# The reusable workflow will be updated by renovate if there's a new version | ||
uses: Unity-Technologies/renovate-workflows/.github/workflows/[email protected] | ||
with: | ||
# This is the image that contains our custom renovate and will be auto | ||
# updated by Renovate itself. | ||
image: europe-docker.pkg.dev/unity-cds-services-prd/ds-docker/renovate:10.1.3@sha256:fdeed7bb524bd67611eb91ee1a5e990c8c73ed62c84a0cd5ef66c87eb5fd0d70 | ||
log-level: ${{ github.event.inputs.log-level }} | ||
secrets: | ||
renovate-auth-secret: ${{ secrets.RENOVATE_AUTH_SECRET }} | ||
github-com-token: ${{ secrets.GH_COM_TOKEN }} |