47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
name: Renovate
|
|
|
|
on:
|
|
# Run daily at 2 AM UTC
|
|
schedule:
|
|
- cron: '0 2 * * *'
|
|
|
|
# Allow manual trigger
|
|
workflow_dispatch:
|
|
|
|
# Run on push to main branch (for testing config changes)
|
|
push:
|
|
branches:
|
|
- main
|
|
- master
|
|
|
|
jobs:
|
|
renovate:
|
|
name: Run Renovate
|
|
runs-on: ubuntu-latest
|
|
|
|
# Use official Renovate container
|
|
container:
|
|
image: ghcr.io/renovatebot/renovate:latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Run Renovate
|
|
run: renovate
|
|
env:
|
|
# Path to config file in this repository
|
|
RENOVATE_CONFIG_FILE: /workspace/${{ gitea.repository }}/config.js
|
|
|
|
# Gitea token (from bot account)
|
|
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
|
|
|
|
# Optional: GitHub token for accessing GitHub releases
|
|
# Note: Use GH_TOKEN not GITHUB_TOKEN (Gitea naming restrictions)
|
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
|
|
# Logging
|
|
LOG_LEVEL: info
|
|
|
|
# Ensure we use the correct config
|
|
RENOVATE_REQUIRE_CONFIG: optional |