From 126ff350658d6a4afd5f3772b6e1e3a5285eb069 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Tue, 27 May 2025 10:56:41 +0200 Subject: [PATCH] configure renovate with a recurring action --- .forgejo/workflows/renovate.yaml | 27 +++++++++++++++++++++++++++ renovate.json | 27 +++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 .forgejo/workflows/renovate.yaml create mode 100644 renovate.json diff --git a/.forgejo/workflows/renovate.yaml b/.forgejo/workflows/renovate.yaml new file mode 100644 index 0000000..da1da1b --- /dev/null +++ b/.forgejo/workflows/renovate.yaml @@ -0,0 +1,27 @@ +name: Renovate Dependency Bot + +on: + schedule: + - cron: "0 3 * * *" + workflow_dispatch: + +jobs: + renovate: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "18" + + - name: Renovate + uses: github.com/renovatebot/github-action@v42.0.4 + with: + token: ${{ secrets.RENOVATE_TOKEN }} + env: + LOG_LEVEL: info + RENOVATE_CONFIG_FILE: renovate.json + RENOVATE_ENDPOINT: ${{ vars.RENOVATE_ENDPOINT }} diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..a55a455 --- /dev/null +++ b/renovate.json @@ -0,0 +1,27 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:base" + ], + "pip_requirements": { + "fileMatch": [ + "^pyproject\\.toml$" + ] + }, + "dockerfile": { + "fileMatch": [ + "^Dockerfile$" + ] + }, + "github-actions": { + "fileMatch": [ + "^\\.forgejo\\/workflows\\/.*\\.yml$" + ] + }, + "labels": [ + "dependencies" + ], + "lockFileMaintenance": { + "enabled": true + } +} \ No newline at end of file