diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 7deb876..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,21 +0,0 @@ -# generated by dependadotnet -# https://github.com/dotnet/core/tree/master/samples/dependadotnet -version: 2 -updates: - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "weekly" - day: "monday" - - package-ecosystem: "nuget" - directory: "/src/WaySON" #WaySON.csproj - schedule: - interval: "weekly" - day: "monday" - open-pull-requests-limit: 5 - - package-ecosystem: "nuget" - directory: "/tests/WaySON.UnitTests" #WaySON.UnitTests.csproj - schedule: - interval: "weekly" - day: "monday" - open-pull-requests-limit: 5 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..593f356 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,12 @@ +name: Renovate Config Linting +on: [pull_request] + +jobs: + renovate: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: 🧼 lint renovate config # Validates changes to renovate.json config file + uses: suzuki-shunsuke/github-action-renovate-config-validator@v0.1.2 + with: + config_file_path: 'renovate.json' diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..2d906bf --- /dev/null +++ b/renovate.json @@ -0,0 +1,48 @@ +{ + "$schema": "https://docs.renovatdebot.com/renovate-schema.json", + "description": "Renovate configuration for WAYSON", + "extends": [ + "config:base" + ], + "schedule": [ + "before 9am on Monday" + ], + "packageRules": [ + { + "matchManagers": [ + "github-actions" + ], + "groupName": "GitHub Actions", + "addLabels": [ + "actions" + ] + }, + { + "matchManagers": [ + "nuget" + ], + "matchUpdateTypes": [ + "minor", + "patch" + ], + "addLabels": [ + "non-breaking", + "cut new release" + ], + "groupName": "NuGet Packages - Minor Updates" + }, + { + "matchManagers": [ + "nuget" + ], + "matchUpdateTypes": [ + "major" + ], + "addLabels": [ + "breaking", + "cut new release" + ], + "groupName": "NuGet Packages - Major Updates" + } + ] +}