From abe3a46a0be32597caecf2e65fd5639eb094c40a Mon Sep 17 00:00:00 2001 From: Ahoo Wang Date: Thu, 18 Jun 2026 21:39:10 +0800 Subject: [PATCH 1/2] ci(renovate): self-host Renovate + remove Dependabot --- .github/dependabot.yml | 15 ------------ .github/workflows/renovate.yml | 42 ++++++++++++++++++++++++++++++++++ renovate.json | 22 ++++++++++++++++-- 3 files changed, 62 insertions(+), 17 deletions(-) delete mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/renovate.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 36822276..00000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,15 +0,0 @@ -version: 2 -updates: - - package-ecosystem: nuget - directory: / - schedule: - interval: weekly - day: monday - open-pull-requests-limit: 5 - - - package-ecosystem: github-actions - directory: / - schedule: - interval: weekly - day: monday - open-pull-requests-limit: 5 diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml new file mode 100644 index 00000000..0d229e44 --- /dev/null +++ b/.github/workflows/renovate.yml @@ -0,0 +1,42 @@ +# +# Copyright [2021-present] [ahoo wang (https://github.com/Ahoo-Wang)]. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +name: Renovate +on: + schedule: + - cron: '0 2 * * *' + workflow_dispatch: + +concurrency: + group: renovate + cancel-in-progress: false + +jobs: + renovate: + name: Renovate + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Self-hosted Renovate + uses: renovatebot/github-action@v46.1.15 + with: + configurationFile: renovate.json + token: ${{ secrets.RENOVATE_TOKEN }} + env: + LOG_LEVEL: debug + RENOVATE_REPOSITORIES: dotnetcore/SmartSql + RENOVATE_ONBOARDING: 'false' + RENOVATE_PLATFORM: github + RENOVATE_REPOSITORY_CACHE: enabled diff --git a/renovate.json b/renovate.json index f45d8f11..96969bec 100644 --- a/renovate.json +++ b/renovate.json @@ -1,5 +1,23 @@ { - "extends": [ - "config:base" + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["config:recommended"], + "timezone": "Asia/Shanghai", + "labels": ["dependencies"], + "commitMessagePrefix": "fix(deps)", + "commitMessageTopic": "{{depName}}", + "rangeStrategy": "bump", + "lockFileMaintenance": { "enabled": false }, + "prConcurrentLimit": 5, + "packageRules": [ + { + "description": "Group Spring ecosystem updates into a single PR", + "matchPackagePatterns": ["^org\\.springframework"], + "groupName": "spring" + }, + { + "description": "Group Kotlin-related updates into a single PR", + "matchPackagePatterns": ["^org\\.jetbrains\\.kotlin"], + "groupName": "kotlin" + } ] } From 572fda5254c7326d3c89a5798aaf317e74531786 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 18 Jun 2026 13:44:24 +0000 Subject: [PATCH 2/2] fix(deps) Update actions/checkout action to v6 --- .github/workflows/build.yml | 2 +- .github/workflows/deploy-wiki.yml | 2 +- .github/workflows/integration-test.yml | 2 +- .github/workflows/package-publish.yml | 2 +- .github/workflows/renovate.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 268bd5a7..23226022 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Set up .NET uses: actions/setup-dotnet@v4 diff --git a/.github/workflows/deploy-wiki.yml b/.github/workflows/deploy-wiki.yml index 60c21761..9b2da36b 100644 --- a/.github/workflows/deploy-wiki.yml +++ b/.github/workflows/deploy-wiki.yml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 3d613656..4e87d585 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Set up .NET uses: actions/setup-dotnet@v4 diff --git a/.github/workflows/package-publish.yml b/.github/workflows/package-publish.yml index e4eb3f8b..4bafc797 100644 --- a/.github/workflows/package-publish.yml +++ b/.github/workflows/package-publish.yml @@ -11,7 +11,7 @@ jobs: packages: write steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Set up .NET uses: actions/setup-dotnet@v4 diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml index 0d229e44..29d33175 100644 --- a/.github/workflows/renovate.yml +++ b/.github/workflows/renovate.yml @@ -27,7 +27,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Self-hosted Renovate uses: renovatebot/github-action@v46.1.15