From 56d7a8155ca795b01bedd1742d667f43ef18099b Mon Sep 17 00:00:00 2001 From: official-Cromatin Date: Sun, 21 Sep 2025 16:57:24 +0200 Subject: [PATCH 1/2] Add required files for renovate bot workflow As outlined in: https://github.com/renovatebot/github-action --- .github/renovate-entrypoint.sh | 11 +++++++++++ .github/workflows/renovate.yml | 24 ++++++++++++++++++++++++ renovate.json | 14 ++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 .github/renovate-entrypoint.sh create mode 100644 .github/workflows/renovate.yml create mode 100644 renovate.json diff --git a/.github/renovate-entrypoint.sh b/.github/renovate-entrypoint.sh new file mode 100644 index 0000000..faa8211 --- /dev/null +++ b/.github/renovate-entrypoint.sh @@ -0,0 +1,11 @@ +#!/bin/bash +set -e + +echo "=== Starting Renovate Bot ===" + +apt update +apt install -y build-essential libpq-dev + +runuser -u ubuntu renovate --platform=github + +echo "=== Renovate Bot finished ===" diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml new file mode 100644 index 0000000..3a47a58 --- /dev/null +++ b/.github/workflows/renovate.yml @@ -0,0 +1,24 @@ +name: Renovate + +on: + workflow_dispatch: + # schedule: + # - cron: '0 2 * * 1' + +permissions: + contents: read + pull-requests: write + +jobs: + renovate: + runs-on: self-hosted + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Run Self-Hosted Renovate + uses: renovatebot/github-action@v43.0.12 + with: + docker-cmd-file: .github/renovate-entrypoint.sh + docker-user: root + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..66368f2 --- /dev/null +++ b/renovate.json @@ -0,0 +1,14 @@ +{ + "extends": ["config:base"], + "labels": ["dependencies", "renovate"], + "packageRules": [ + { + "managers": ["pip_requirements"], + "updateTypes": ["minor", "patch"], + "automerge": false, + "groupName": "Python dependencies" + } + ], + "prConcurrentLimit": 5, + "prHourlyLimit": 2 +} From 654274f63253a15ee8383cd44a38171d19e7a50a Mon Sep 17 00:00:00 2001 From: official-Cromatin Date: Sun, 21 Sep 2025 17:04:47 +0200 Subject: [PATCH 2/2] Enable renovate workflow schedule --- .github/workflows/renovate.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml index 3a47a58..8eab065 100644 --- a/.github/workflows/renovate.yml +++ b/.github/workflows/renovate.yml @@ -2,8 +2,8 @@ name: Renovate on: workflow_dispatch: - # schedule: - # - cron: '0 2 * * 1' + schedule: + - cron: '0 2 * * 1' permissions: contents: read