From 31ee1061f37a43095891f57837dd24cccd09db1b Mon Sep 17 00:00:00 2001 From: Yonathan Negussie Mengesha Date: Fri, 28 Oct 2022 18:26:13 +0200 Subject: [PATCH] Add renovate to repo (#3) * Add renovate linting step * Add renovate rules * Grouping major vs minor updates * Scheduling --- .github/workflows/ci.yml | 11 ++++++++++- renovate.json | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 renovate.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1094e71..c85c215 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,4 +13,13 @@ jobs: with: java-version: 1.8 - name: Build - run: ./gradlew build \ No newline at end of file + run: ./gradlew build + + 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' \ No newline at end of file diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..3279147 --- /dev/null +++ b/renovate.json @@ -0,0 +1,40 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:base", + ":rebaseStalePrs", + "schedule:weekly" + ], + "enabledManagers": [ + "github-actions", + "gradle", + "gradle-wrapper" + ], + "packageRules": [ + { + "matchUpdateTypes": [ + "minor", + "patch" + ], + "groupName": "Minor Updates", + "labels": [ + "minor" + ] + }, + { + "matchUpdateTypes": [ + "major" + ], + "groupName": "Major Updates", + "labels": [ + "major" + ] + }, + { + "matchManagers": [ + "github-actions" + ], + "groupName": "GitHub Actions" + } + ] +} \ No newline at end of file