diff --git a/.gitea/workflows/renovate.yml b/.gitea/workflows/renovate.yml new file mode 100644 index 0000000..49008b4 --- /dev/null +++ b/.gitea/workflows/renovate.yml @@ -0,0 +1,21 @@ +name: renovate + +on: + schedule: + - cron: "0 0 * * *" + push: + branches: + - staging + +jobs: + renovate: + runs-on: ubuntu-latest + container: git.fossy.my.id/renovate-clanker/renovate:latest + steps: + - uses: actions/checkout@v6 + - run: renovate + env: + RENOVATE_CONFIG_FILE: ${{ gitea.workspace }}/renovate-config.js + LOG_LEVEL: "debug" + RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }} + GITHUB_COM_TOKEN: ${{ secrets.COM_TOKEN }} \ No newline at end of file diff --git a/renovate-config.js b/renovate-config.js new file mode 100644 index 0000000..212cb36 --- /dev/null +++ b/renovate-config.js @@ -0,0 +1,8 @@ +module.exports = { + "endpoint": "https://git.fossy.my.id/api/v1", + "gitAuthor": "Renovate-Clanker ", + "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..4aceacc --- /dev/null +++ b/renovate.json @@ -0,0 +1,19 @@ +{ + "extends": [ + "config:recommended" + ], + "packageRules": [ + { + "matchUpdateTypes": [ + "minor", + "patch", + "pin", + "digest" + ], + "automerge": true, + "baseBranchPatterns": [ + "staging" + ] + } + ] +}