From 2b5ff3aaca887b400a563e22bcbc6009fe6852ab Mon Sep 17 00:00:00 2001 From: Sumana Saha Date: Mon, 31 Oct 2022 15:12:34 +0100 Subject: [PATCH] Add-renovate (#32) * Add-renovate * Update .github/workflows/lint.yml Co-authored-by: ss675u Co-authored-by: Dan Rowe --- .github/workflows/lint.yml | 13 +++++++++++++ renovate.json | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .github/workflows/lint.yml create mode 100644 renovate.json diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..1f5495e --- /dev/null +++ b/.github/workflows/lint.yml @@ -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' diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..a35e709 --- /dev/null +++ b/renovate.json @@ -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" + } + ] +}