diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml new file mode 100644 index 0000000..c554c70 --- /dev/null +++ b/.github/workflows/renovate.yml @@ -0,0 +1,31 @@ +name: Renovate + +on: + workflow_dispatch: + inputs: + dryRun: + description: 'Dry run (no PRs will be created)' + required: false + default: 'false' + type: choice + options: + - 'true' + - 'false' + schedule: + - cron: '0 0 * * 1' # Every Monday at 00:00 UTC + +jobs: + renovate: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Run Renovate + uses: renovatebot/github-action@v41 + with: + configurationFile: renovate.json + token: ${{ secrets.RENOVATE_TOKEN }} + env: + LOG_LEVEL: info + RENOVATE_DRY_RUN: ${{ github.event.inputs.dryRun }} diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..0efd275 --- /dev/null +++ b/renovate.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:base" + ], + "labels": ["dependencies"], + "prHourlyLimit": 2, + "prConcurrentLimit": 5, + "schedule": ["before 9am on monday"] +}