44 lines
1.5 KiB
YAML
44 lines
1.5 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:
|
|
# Same reasoning as check's runs-on in ci.yml: brick-build's job
|
|
# container now has Node (repointed at Gitea's own official runner
|
|
# image), which setup-node/npm below need.
|
|
runs-on: brick-build
|
|
steps:
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v7
|
|
with:
|
|
node-version: "22"
|
|
|
|
# Renovate shells out to `bundler lock` for Gemfile.lock updates.
|
|
# No checkout in this job, so the version can't come from
|
|
# .ruby-version; the major.minor is enough for lockfile work.
|
|
- name: Setup Ruby
|
|
uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: "4.0"
|
|
|
|
- name: Install Renovate
|
|
run: npm install -g renovate
|
|
|
|
- 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"
|
|
# 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 }}
|