From 5ed64f92f39fd2a25c701af6fbdde6886fcebcba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lea=20H=C3=A4usel?= Date: Wed, 28 Jan 2026 11:35:59 +0100 Subject: [PATCH] ci: add action that updates dependencies every 6 months --- .github/renovate.json | 19 +++++++++++++++++++ .github/workflows/update_dependencies.yml | 21 +++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .github/renovate.json create mode 100644 .github/workflows/update_dependencies.yml diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 00000000..c35eca68 --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,19 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["config:recommended"], + "packageRules": [ + { + "matchManagers": ["pip_requirements", "conda"], + "groupName": "Python dependencies", + "separateMajorMinor": false + }, + { + "matchManagers": ["github-actions"], + "groupName": "GitHub actions", + "separateMajorMinor": false + } + ], + "dependencyDashboard": true + // "onboarding": false, // TODO: reactivate later + // "requireConfig": "optional" // TODO: reactivate later +} diff --git a/.github/workflows/update_dependencies.yml b/.github/workflows/update_dependencies.yml new file mode 100644 index 00000000..d2d760fe --- /dev/null +++ b/.github/workflows/update_dependencies.yml @@ -0,0 +1,21 @@ +name: update_dependencies +on: + schedule: + - cron: "0 0 1 2 *" # 1st of February at 00:00 UTC + - cron: "0 0 1 8 *" # 1st of August at 00:00 UTC + push: # TODO: remove later, only for testing +jobs: + run_renovate: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v6.0.2 + - name: Run self-hosted Renovate + uses: renovatebot/github-action@v44.2.5 + with: + # token: ${{ secrets.RENOVATE_TOKEN }} + token: ${{ secrets.RENOVATE_TOKEN_MY_QUEENS_FORK }} + env: + # RENOVATE_REPOSITORIES: "queens-py/queens" + RENOVATE_REPOSITORIES: "leahaeusel/queens" + RENOVATE_BRANCH_PREFIX: "renovate-action/"