add renovate GitHub Action and json config

This commit is contained in:
perf3ct 2024-11-18 20:16:39 +00:00
parent a4c0ae06db
commit f4ed98ebda
No known key found for this signature in database
GPG Key ID: 569C4EEC436F5232
2 changed files with 43 additions and 0 deletions

25
.github/workflows/renovate.yaml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Renovate
on:
schedule:
# Run every day at 1 AM UTC (before the nightly build at 2 AM UTC)
- cron: '0 1 * * *'
# Allow manual triggering
workflow_dispatch:
permissions:
contents: write
pull-requests: write
issues: write
jobs:
renovate:
name: Run Renovate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Self-hosted Renovate
uses: renovatebot/github-action@v41.0.3
with:
configurationFile: renovate.json
token: ${{ secrets.GITHUB_TOKEN }}

18
renovate.json Normal file
View File

@ -0,0 +1,18 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
],
"schedule": ["before 3am"],
"packageRules": [
{
"matchUpdateTypes": ["minor", "patch"],
"matchCurrentVersion": "!/^0/",
"automerge": false
}
],
"labels": ["dependencies"],
"prHourlyLimit": 0,
"prConcurrentLimit": 0,
"branchConcurrentLimit": 0
}