From 9a2a373eb3c29ca51addf6a14bb20b93269308d4 Mon Sep 17 00:00:00 2001 From: bagas Date: Sun, 28 Dec 2025 14:51:00 +0700 Subject: [PATCH] feat: add renovate --- .gitea/workflows/renovate.yml | 20 ++++++++++++++++++++ renovate-config.js | 8 ++++++++ renovate.json | 11 +++++++++++ 3 files changed, 39 insertions(+) create mode 100644 .gitea/workflows/renovate.yml create mode 100644 renovate-config.js create mode 100644 renovate.json diff --git a/.gitea/workflows/renovate.yml b/.gitea/workflows/renovate.yml new file mode 100644 index 0000000..a4e6eaa --- /dev/null +++ b/.gitea/workflows/renovate.yml @@ -0,0 +1,20 @@ +name: renovate + +on: + schedule: + - cron: "0 0 * * *" + push: + branches: + - main + +jobs: + renovate: + runs-on: ubuntu-latest + container: git.fossy.my.id/renovate-clanker/renovate:latest + steps: + - uses: actions/checkout@v4 + - run: renovate + env: + RENOVATE_CONFIG_FILE: ${{ gitea.workspace }}/renovate-config.js + LOG_LEVEL: "debug" + RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }} \ No newline at end of file diff --git a/renovate-config.js b/renovate-config.js new file mode 100644 index 0000000..883f95e --- /dev/null +++ b/renovate-config.js @@ -0,0 +1,8 @@ +module.exports = { + "endpoint": "https://git.fossy.my.id/api/v1", + "gitAuthor": "Renovate Bot ", + "platform": "gitea", + "onboardingConfigFileName": "renovate.json", + "autodiscover": true, + "optimizeForDisabled": true, +}; \ No newline at end of file diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..a492bc9 --- /dev/null +++ b/renovate.json @@ -0,0 +1,11 @@ +{ + "extends": [ + "config:base" + ], + "packageRules": [ + { + "updateTypes": ["minor", "patch", "pin", "digest"], + "automerge": true + } + ] +} \ No newline at end of file