Merge pull request 'Update config.js' (#32) from jank-patch-1 into main
Some checks failed
renovate / renovate (push) Has been cancelled
Some checks failed
renovate / renovate (push) Has been cancelled
Reviewed-on: #32
This commit is contained in:
commit
747887e3c4
2 changed files with 60 additions and 17 deletions
|
@ -9,12 +9,39 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
renovate:
|
renovate:
|
||||||
runs-on: ubuntu-latest
|
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:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
# Checkout the repository containing config.js
|
||||||
- run: renovate
|
- 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:
|
env:
|
||||||
RENOVATE_CONFIG_FILE: "config.js" # replace it with your config.js path
|
# --- Core Configuration ---
|
||||||
LOG_LEVEL: "debug"
|
RENOVATE_CONFIG_FILE: "config.js" # Path to your config file
|
||||||
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }} # your Revonate bot token
|
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }} # Token for Gitea
|
||||||
GITHUB_COM_TOKEN: ${{ secrets.GH_TOKEN }}
|
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
|
||||||
|
|
||||||
|
|
30
config.js
30
config.js
|
@ -1,12 +1,28 @@
|
||||||
|
// config.js
|
||||||
module.exports = {
|
module.exports = {
|
||||||
endpoint: 'https://git.kjan.de/api/v1/',
|
endpoint: "https://git.kjan.de/api/v1/",
|
||||||
platform: 'gitea',
|
platform: "gitea",
|
||||||
gitAuthor: "Renovate <renovate@kjan.de>",
|
gitAuthor: "Renovate <renovate@kjan.de>",
|
||||||
persistRepoData: true,
|
|
||||||
|
// --- Caching ---
|
||||||
|
// Explicitly enable caching (good practice, though often default)
|
||||||
|
persistCache: true,
|
||||||
|
// Use the default cache directory which we will map in the Action
|
||||||
|
// cacheDir: "/tmp/renovate-cache", // Default, usually no need to set
|
||||||
|
|
||||||
|
// --- Discovery ---
|
||||||
|
autodiscover: true, // Kept as per your requirement
|
||||||
|
|
||||||
|
// --- Onboarding ---
|
||||||
|
// Ensure new repos get the standard config
|
||||||
onboardingConfig: {
|
onboardingConfig: {
|
||||||
'extends': [
|
extends: ["local>Renovate/renovate-config"],
|
||||||
"local>Renovate/renovate-config"
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
autodiscover: true,
|
|
||||||
|
// --- Important Note ---
|
||||||
|
// For major speedups, optimize rules within your 'local>Renovate/renovate-config' preset:
|
||||||
|
// - Use `packageRules` to group related dependencies (`groupName`).
|
||||||
|
// - Consider adding `skipInstalls: true` globally or via `packageRules` if possible.
|
||||||
|
// - Add rules to ignore specific dependencies (`ignoreDeps` or `enabled: false`).
|
||||||
|
// - Limit update types (`matchUpdateTypes`) where applicable.
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue