From 1a9228b76d69b3abb4c152c801df472d99a564e1 Mon Sep 17 00:00:00 2001 From: Boris Yumankulov Date: Fri, 20 Jun 2025 21:37:14 +0500 Subject: [PATCH] ci: added renovate auto update bot Signed-off-by: Boris Yumankulov --- .gitea/workflows/renovate.yaml | 21 +++++++++++++++++++++ config.js | 8 ++++++++ renovate.json | 18 ++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 .gitea/workflows/renovate.yaml create mode 100644 config.js create mode 100644 renovate.json diff --git a/.gitea/workflows/renovate.yaml b/.gitea/workflows/renovate.yaml new file mode 100644 index 0000000..db5236e --- /dev/null +++ b/.gitea/workflows/renovate.yaml @@ -0,0 +1,21 @@ +name: renovate + +on: + workflow_dispatch: + schedule: + - cron: "@daily" + push: + branches: + - main + +jobs: + renovate: + runs-on: ubuntu-latest + container: ghcr.io/renovatebot/renovate:41.1.3 + steps: + - uses: actions/checkout@v4 + - run: renovate + env: + RENOVATE_CONFIG_FILE: "/workspace/{{username}}/{{repo name}/config.js" + LOG_LEVEL: "debug" + RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }} diff --git a/config.js b/config.js new file mode 100644 index 0000000..152703b --- /dev/null +++ b/config.js @@ -0,0 +1,8 @@ +module.exports = { + "endpoint": "https://git.linux-gaming.ru/api/v1", + "gitAuthor": "Renovate Bot ", + "platform": "gitea", + "onboardingConfigFileName": "renovate.json", + "autodiscover": true, + "optimizeForDisabled": true, +}; diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..1f4e07e --- /dev/null +++ b/renovate.json @@ -0,0 +1,18 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["config:best-practices"], + "rebaseWhen": "never", + "packageRules": [ + { + "automerge": true, + "matchUpdateTypes": ["pin", "pinDigest"] + }, + { + "enabled": false, + "matchFileNames": [ + ".gitea/workflows/**.yml", + ".gitea/workflows/**.yaml", + ] + } + ] +}