35 lines
1.4 KiB
YAML
35 lines
1.4 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 and asset pin bumps)
|
|
RENOVATE_ALLOWED_COMMANDS: '["^npm ci( \\S+)*$", "^node bin/vendor-sync\\.mjs$", "^node bin/assets-sync\\.mjs$"]'
|
|
# Secret named GH_COM_TOKEN: Gitea reserves the GITHUB_ prefix.
|
|
GITHUB_COM_TOKEN: ${{ secrets.GH_COM_TOKEN }}
|