From 7f36bb2abd6e5ff5d52c8e18dd2d407f92cd029e Mon Sep 17 00:00:00 2001 From: Alex Wellnitz Date: Mon, 17 Mar 2025 20:11:41 +0100 Subject: [PATCH] ci: add renovate pipeline --- .gitea/workflows/config.js | 8 ++++++++ .gitea/workflows/renovate.yaml | 20 ++++++++++++++++++++ renovate.json | 9 +++++++++ 3 files changed, 37 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..103ffa0 --- /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, +}; diff --git a/.gitea/workflows/renovate.yaml b/.gitea/workflows/renovate.yaml new file mode 100644 index 0000000..f68b954 --- /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:39.207.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.RENOVATE_TOKEN }} # your Revonate bot token diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..4ff5a3c --- /dev/null +++ b/renovate.json @@ -0,0 +1,9 @@ +{ + "extends": ["config:recommended"], + "packageRules": [ + { + "matchUpdateTypes": ["minor", "patch", "pin", "digest"], + "automerge": true + } + ] +}