Skip to content

Commit

Permalink
Add renovate to repo (#3)
Browse files Browse the repository at this point in the history
* Add renovate linting step
* Add renovate rules
    * Grouping major vs minor updates
    * Scheduling
  • Loading branch information
ymengesha authored Oct 28, 2022
1 parent caec2b9 commit 31ee106
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,13 @@ jobs:
with:
java-version: 1.8
- name: Build
run: ./gradlew build
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/[email protected]
with:
config_file_path: 'renovate.json'
40 changes: 40 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}

0 comments on commit 31ee106

Please sign in to comment.