From 3fde33c99c5ea9c6f8247dd356657a558312cbda Mon Sep 17 00:00:00 2001 From: Alex Wellnitz Date: Mon, 17 Mar 2025 18:43:07 +0100 Subject: [PATCH] feat: add renovate --- .gitea/workflows/config.js | 8 ++++++++ .gitea/workflows/renovate.yaml | 20 ++++++++++++++++++++ renovate.json | 12 ++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 .gitea/workflows/config.js create mode 100644 .gitea/workflows/renovate.yaml create mode 100644 renovate.json diff --git a/.gitea/workflows/config.js b/.gitea/workflows/config.js new file mode 100644 index 0000000..9f00022 --- /dev/null +++ b/.gitea/workflows/config.js @@ -0,0 +1,8 @@ +module.exports = { + "endpoint": "https://git.dev-null.rocks/api/v1", // replace it with your actual endpoint + "gitAuthor": "Renovate Bot ", + "platform": "gitea", + "onboardingConfigFileName": "renovate.json", + "autodiscover": true, + "optimizeForDisabled": true, +}; \ No newline at end of file diff --git a/.gitea/workflows/renovate.yaml b/.gitea/workflows/renovate.yaml new file mode 100644 index 0000000..72cf2e4 --- /dev/null +++ b/.gitea/workflows/renovate.yaml @@ -0,0 +1,20 @@ +name: renovate + +on: + schedule: + - cron: "@daily" + push: + branches: + - main + +jobs: + renovate: + runs-on: ubuntu-latest + container: ghcr.io/renovatebot/renovate:37.20.2 + steps: + - uses: actions/checkout@v4 + - run: renovate + env: + RENOVATE_CONFIG_FILE: "./gitea/workflows/config.js" # replace it with your config.js path + LOG_LEVEL: "debug" + RENOVATE_TOKEN: ${{ secrets.GA_TOKEN }} # your Revonate bot token \ No newline at end of file diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..5c4f984 --- /dev/null +++ b/renovate.json @@ -0,0 +1,12 @@ +{ + "extends": [ + "config:base" + ], + "packageRules": [ + { + "updateTypes": ["minor", "patch", "pin", "digest"], + "automerge": true + } + ] + } + \ No newline at end of file