From bf23d6c7e9bd5bad1392e99aba4725a76c787b76 Mon Sep 17 00:00:00 2001 From: GU Yiling Date: Mon, 8 Sep 2025 17:04:58 +0800 Subject: [PATCH] chore: use renovate app, improve configuration (#871) * chore: use renovate app instead * chore: config renovate --- .github/workflows/renovate.yml | 23 ----------------------- renovate.json | 22 +++++++++++++++++++++- 2 files changed, 21 insertions(+), 24 deletions(-) delete mode 100644 .github/workflows/renovate.yml diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml deleted file mode 100644 index a13f1e5..0000000 --- a/.github/workflows/renovate.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Renovate - -on: - workflow_dispatch: - schedule: - - cron: "0 16 * * *" - -permissions: - contents: read - -jobs: - renovate: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Self-hosted Renovate - uses: renovatebot/github-action@v43.0.10 - with: - token: ${{ secrets.RENOVATE_TOKEN }} - env: - RENOVATE_REPOSITORIES: ${{ github.repository }} diff --git a/renovate.json b/renovate.json index 22a9943..79dccc6 100644 --- a/renovate.json +++ b/renovate.json @@ -1,4 +1,24 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": ["config:recommended"] + "extends": ["config:recommended"], + "minimumReleaseAge": "7 days", + "internalChecksFilter": "strict", + "packageRules": [ + { + "matchUpdateTypes": ["patch"], + "groupName": "patches after 7 days", + "automerge": true + }, + { + "matchUpdateTypes": ["minor"], + "excludePackageNames": ["vue", "echarts"], + "groupName": "minors after 7 days", + "automerge": false + }, + { + "matchPackageNames": ["vue", "echarts"], + "matchUpdateTypes": ["minor"], + "automerge": false + } + ] }