Files
maptool/.gitea/workflows/renovate.yml
T
randy 1e6c650024
CI / check (push) Successful in 20s
CI / deploy (push) Successful in 13s
Renovate: run in the official image instead of npm install
No per-run npm install (and its deprecation/allow-scripts warnings),
Node comes with the image so the engines.node mismatch can't recur,
and containerbase installs Ruby/bundler on demand for Gemfile.lock.
2026-11-03 18:12:53 +01:00

35 lines
1.3 KiB
YAML

name: Renovate
on:
workflow_dispatch:
schedule:
# Gitea extends standard cron syntax with an optional "TZ=" prefix.
- cron: "TZ=Europe/Bratislava 0 6 * * 1"
jobs:
renovate:
runs-on: brick-build
# Official image instead of `npm install -g renovate`: no per-run
# install, and Node is whatever this Renovate release ships with (npm
# used to silently pick an older Renovate when setup-node's major
# didn't match its engines.node). Ruby/bundler for Gemfile.lock
# updates get installed on demand by the image's containerbase
# (RENOVATE_BINARY_SOURCE=install below). Renovate bumps this
# tag itself.
container:
image: ghcr.io/renovatebot/renovate:44
steps:
- name: Run Renovate
run: renovate
env:
RENOVATE_PLATFORM: gitea
RENOVATE_ENDPOINT: "${{ gitea.server_url }}/api/v1/"
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
RENOVATE_REPOSITORIES: "${{ gitea.repository }}"
RENOVATE_ONBOARDING: "false"
RENOVATE_BINARY_SOURCE: install
# postUpgradeTasks in renovate.json (vendor re-sync on npm bumps)
RENOVATE_ALLOWED_COMMANDS: '["^npm ci( \\S+)*$", "^node bin/vendor-sync\\.mjs$"]'
# Secret named GH_COM_TOKEN: Gitea reserves the GITHUB_ prefix.
GITHUB_COM_TOKEN: ${{ secrets.GH_COM_TOKEN }}