From 9b08b40b5e63522915ce45141535fd06aa78d1fb Mon Sep 17 00:00:00 2001 From: Alex Wellnitz Date: Tue, 25 Mar 2025 22:43:56 +0100 Subject: [PATCH] ci: Added renovate configuration files for Gitea workflow automation --- .gitea/workflows/config.js | 8 ++++++++ .gitea/workflows/renovate.yaml | 20 ++++++++++++++++++++ renovate.json | 10 ++++++++++ 3 files changed, 38 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..22c50f4 --- /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.211.0 + 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 \ No newline at end of file diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..9afcfbb --- /dev/null +++ b/renovate.json @@ -0,0 +1,10 @@ +{ + "extends": ["config:recommended", ":dependencyDashboard"], + "packageRules": [ + { + "matchUpdateTypes": ["minor", "patch", "pin", "digest"], + "automerge": true + } + ] + } + \ No newline at end of file