From 65a18fa8f91c476ce689c5931f330b0ef8d183de Mon Sep 17 00:00:00 2001 From: alexohneander Date: Tue, 18 Mar 2025 13:23:29 +0100 Subject: [PATCH] ci: add renovate pipeline --- .gitea/worklows/config.js | 8 ++++++++ .gitea/worklows/renovate.yaml | 20 ++++++++++++++++++++ renovate.json | 9 +++++++++ 3 files changed, 37 insertions(+) create mode 100644 .gitea/worklows/config.js create mode 100644 .gitea/worklows/renovate.yaml create mode 100644 renovate.json diff --git a/.gitea/worklows/config.js b/.gitea/worklows/config.js new file mode 100644 index 0000000..103ffa0 --- /dev/null +++ b/.gitea/worklows/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/worklows/renovate.yaml b/.gitea/worklows/renovate.yaml new file mode 100644 index 0000000..f68b954 --- /dev/null +++ b/.gitea/worklows/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..7c3fdeb --- /dev/null +++ b/renovate.json @@ -0,0 +1,9 @@ +{ + "extends": ["config:recommended", ":dependencyDashboard"], + "packageRules": [ + { + "matchUpdateTypes": ["minor", "patch", "pin", "digest"], + "automerge": true + } + ] +}