diff --git a/.gitea/workflows/renovate.yml b/.gitea/workflows/renovate.yml new file mode 100644 index 0000000..7632d4d --- /dev/null +++ b/.gitea/workflows/renovate.yml @@ -0,0 +1,19 @@ +name: renovate +on: + workflow_dispatch: + schedule: + - cron: "0 */4 * * *" # every 4 hours + push: + branches: + - main +jobs: + renovate: + runs-on: ubuntu-latest + container: ghcr.io/renovatebot/renovate:latest + steps: + - uses: actions/checkout@v6 + - run: renovate + env: + RENOVATE_CONFIG_FILE: "/workspace/renovate-bot/renovate-runner/config.js" + LOG_LEVEL: "debug" + RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }} diff --git a/config.js b/config.js new file mode 100644 index 0000000..225c6ed --- /dev/null +++ b/config.js @@ -0,0 +1,17 @@ +module.exports = { + platform: 'gitea', + endpoint: 'https://git.haozi.net/api/v1', + gitAuthor: 'gitea-actions ', + autodiscover: true, + onboarding: false, + optimizeForDisabled: true, + prHourlyLimit: 0, + automerge: true, + major: { + automerge: false, + }, + automergeType: 'pr', + automergeStrategy: 'squash', + githubTokenWarn: false, + semanticCommits: 'enabled' +} \ No newline at end of file