Skip to content

Commit

Permalink
Add-renovate (#32)
Browse files Browse the repository at this point in the history
* Add-renovate

* Update .github/workflows/lint.yml

Co-authored-by: ss675u <ssaha@wayfair.com>
Co-authored-by: Dan Rowe <draco2003@gmail.com>
  • Loading branch information
3 people committed Oct 31, 2022
1 parent 72d0e5a commit 2b5ff3a
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
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'
33 changes: 33 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"description": "Renovate configuration for hypernova php repository",
"extends": [
"config:base",
":dependencyDashboard",
":rebaseStalePrs"
],
"schedule": [
"before 3am every weekday"
],
"enabledManagers": [
"github-actions"
],
"composer": {
"packageRules": [
{
"description": "Wait 3 days before opening a PR for new major version updates",
"matchUpdateTypes": ["major"]
},
{
"description": "Automerge non-major version updates (assuming the CI pipelines pass)",
"matchUpdateTypes": ["patch", "minor"]
}
]
},
"packageRules": [
{
"matchManagers": ["github-actions"],
"groupName": "GitHub Actions"
}
]
}

0 comments on commit 2b5ff3a

Please sign in to comment.