Skip to content

Build your personal knowledge base with Trilium Notes

add renovate GitHub Action and json config

perf3ctf4ed98ebda46
diff --git a/.github/workflows/renovate.yaml b/.github/workflows/renovate.yaml
new file mode 100644
index 0000000000..29bdd0da80
--- /dev/null
+++ b/.github/workflows/renovate.yaml
@@ -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/[email protected]
+ with:
+ configurationFile: renovate.json
+ token: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
diff --git a/renovate.json b/renovate.json
new file mode 100644
index 0000000000..e8531c3a2d
--- /dev/null
+++ b/renovate.json
@@ -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
+}
\ No newline at end of file