Update .gitea/workflows/renovate.yaml
All checks were successful
renovate / renovate (push) Successful in 4m31s
All checks were successful
renovate / renovate (push) Successful in 4m31s
This commit is contained in:
parent
e5a3b030bb
commit
ae764eb1be
1 changed files with 34 additions and 7 deletions
|
@ -9,12 +9,39 @@ on:
|
|||
jobs:
|
||||
renovate:
|
||||
runs-on: ubuntu-latest
|
||||
container: ghcr.io/renovatebot/renovate:latest
|
||||
# Pin to a specific Renovate version for stability (check ghcr.io for latest)
|
||||
# Example: ghcr.io/renovatebot/renovate:37.250.0
|
||||
container: ghcr.io/renovatebot/renovate:37.290.1 # Pinned version
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: renovate
|
||||
# Checkout the repository containing config.js
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# Cache Renovate's dependency cache directory between runs
|
||||
- name: Cache Renovate dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: /tmp/renovate-cache # Renovate's default cache directory
|
||||
# Key based on OS, config file hash, and run ID (ensures save)
|
||||
key: ${{ runner.os }}-renovate-${{ hashFiles('config.js') }}-${{ github.run_id }}
|
||||
# Fallback keys for restoring from previous runs
|
||||
restore-keys: |
|
||||
${{ runner.os }}-renovate-${{ hashFiles('config.js') }}-
|
||||
${{ runner.os }}-renovate-
|
||||
|
||||
# Run Renovate using the configuration file
|
||||
- name: Run Renovate
|
||||
run: renovate
|
||||
env:
|
||||
RENOVATE_CONFIG_FILE: "config.js" # replace it with your config.js path
|
||||
LOG_LEVEL: "debug"
|
||||
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }} # your Revonate bot token
|
||||
GITHUB_COM_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
# --- Core Configuration ---
|
||||
RENOVATE_CONFIG_FILE: "config.js" # Path to your config file
|
||||
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }} # Token for Gitea
|
||||
GITHUB_COM_TOKEN: ${{ secrets.GH_TOKEN }} # Only needed if Renovate MUST access github.com (e.g., for release notes). Remove if not needed.
|
||||
|
||||
# --- Performance & Logging ---
|
||||
# Use 'info' for normal runs, 'debug' only when troubleshooting
|
||||
LOG_LEVEL: "info"
|
||||
# Explicitly tell Renovate where the cache is (matches actions/cache path)
|
||||
RENOVATE_CACHE_DIR: /tmp/renovate-cache
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue