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