Skip to content

Commit

Permalink
added renovate configs
Browse files Browse the repository at this point in the history
  • Loading branch information
nevoodoo committed Sep 29, 2024
1 parent 3d1a790 commit d370da9
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/renovate-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"onboarding": true,
"requireConfig": "ignored",
"platform": "github",
"repositories": ["populationgenomics/metamist"],
"prConcurrentLimit": 10,
"prHourlyLimit": 5,
"semanticCommits": "enabled",
"enabledManagers": ["pip-compile"],
"constraints": {
"python": "==3.11"
},
"pip-compile": {
"fileMatch": ["^requirements\\.txt$", "^dev-requirements\\.txt$"],
"lockFileMaintenance": {
"enabled": true,
"branchTopic": "pip-compile-refresh",
"commitMessageAction": "Refresh pip-compile outputs"
}
},
"packageRules": [
{
"groupName": "all non-major dependencies",
"groupSlug": "all-minor-patch",
"matchUpdateTypes": [
"minor",
"patch"
],
"matchPackagePatterns": ["*"],
"minimumReleaseAge": "48 hours"
},
{
"groupName": "all major dependencies",
"groupSlug": "all-major",
"matchUpdateTypes": [
"major"
],
"matchPackagePatterns": ["*"],
"minimumReleaseAge": "48 hours"
}
]
}
28 changes: 28 additions & 0 deletions .github/workflows/renovate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Renovate
on:
schedule:
- cron: '0 0 * * Sun'
push:
branches:
- dev
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
renovate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Self-hosted Renovate
uses: renovatebot/github-action@v40.2.10
with:
token: '${{ secrets.RENOVATE_TOKEN }}'
docker-user: root
configurationFile: .github/renovate-config.json
env:
LOG_LEVEL: 'debug'

0 comments on commit d370da9

Please sign in to comment.