From 2497d91cf7ff135d2a8de097aa9f07101469843c Mon Sep 17 00:00:00 2001 From: Noel Sabia Date: Fri, 30 Oct 2026 20:33:09 +0100 Subject: [PATCH] ci(renovate): enable Renovate on Gitea with automerge Gitea has no hosted Renovate, so the repository runs the official image from a scheduled Gitea Actions workflow. The platform settings stay in the workflow environment because Renovate accepts them only in the self-hosted config, not in renovate.json. renovate.json keeps the repository config minimal: schema plus automerge=true, which also covers major updates. The bot account and the RENOVATE_TOKEN secret are the remaining manual steps. --- .gitea/workflows/renovate.yml | 41 +++++++++++++++++++++++++++++++++++ renovate.json | 4 ++++ 2 files changed, 45 insertions(+) create mode 100644 .gitea/workflows/renovate.yml create mode 100644 renovate.json diff --git a/.gitea/workflows/renovate.yml b/.gitea/workflows/renovate.yml new file mode 100644 index 0000000..aab1f3a --- /dev/null +++ b/.gitea/workflows/renovate.yml @@ -0,0 +1,41 @@ +name: Renovate + +# Renovate is not hosted for Gitea, so this repository runs it itself. +# The bot opens dependency PRs through the API; the PR pipeline checks them +# (a branch protection rule should require those checks before automerge). +# +# Manual setup: create a bot account with its full name and email set, give +# it write access to this repository, and store a token with +# repository read/write, issue read/write, user read and organization read +# as the RENOVATE_TOKEN Actions secret. +on: + schedule: + # Daily at 04:00 UTC. Gitea only schedules workflows that exist on the + # default branch. + - cron: "0 4 * * *" + workflow_dispatch: + +concurrency: + group: renovate + cancel-in-progress: false + +jobs: + renovate: + name: Run Renovate + runs-on: ubuntu-latest + timeout-minutes: 30 + # Pinned and multi-arch (the runner is arm64). The image installs the + # Node-based toolchain it needs on demand. + container: renovate/renovate:44.198.2 + steps: + - name: Run Renovate + env: + RENOVATE_PLATFORM: gitea + # API root, not the web root. Renovate reads renovate.json from the + # default branch through this endpoint. + RENOVATE_ENDPOINT: https://git.noelsabia.dev/api/v1 + RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }} + # This workflow lives in the repository it updates, so scope the bot + # to it instead of every repository its account can see. + RENOVATE_REPOSITORIES: CV_Website/CV_Site_Nuxt + run: renovate diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..d64cd8b --- /dev/null +++ b/renovate.json @@ -0,0 +1,4 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "automerge": true +} -- 2.54.0