Use a relative LOG_FILE path (Renovate lowercases it)

This commit is contained in:
Demo committed 2026-10-11 21:28:23 +02:00
1 parent f25441ffdc
commit 717fa93afc
2 files changed
+6 -3

No files matched your search

+4 -2
View File
@@ -3,13 +3,15 @@
# Renovate requires Node.js >= 24.11
if ([version](node -v).TrimStart('v') -lt [version]'24.11.0') { throw "Renovate requires Node.js >= 24.11, found: $(node -v). E.g.: volta install node@24" }
# Report and debug log of this run: reports/<timestamp>/
$outDir = Join-Path (Join-Path (Join-Path $PSScriptRoot '..') 'reports') (Get-Date -Format 'yyyy-MM-dd-HH-mm-ss-fff')
$ts = Get-Date -Format 'yyyy-MM-dd-HH-mm-ss-fff'
$outDir = Join-Path (Join-Path (Join-Path $PSScriptRoot '..') 'reports') $ts
$report = Join-Path $outDir 'renovate-report.json'
New-Item -ItemType Directory -Force -Path $outDir | Out-Null
Push-Location (Join-Path $PSScriptRoot '..') # repository root
# Debug log file: console output in the same format, but at debug level
$env:LOG_FILE = Join-Path $outDir 'renovate.log'
# Relative path on purpose: Renovate lowercases LOG_FILE, an absolute path would break on case-sensitive file systems
$env:LOG_FILE = "reports/$ts/renovate.log"
$env:LOG_FILE_LEVEL = 'debug'
$env:LOG_FILE_FORMAT = 'pretty'
npx --yes renovate@44.149.3 --platform=local --dry-run=lookup --report-type=file --report-path=$report
+2 -1
View File
@@ -31,7 +31,8 @@ if ($LASTEXITCODE -ne 0) { Pop-Location; throw 'git push failed' }
# and the debug log file (console output in the same format, but at debug level).
$env:RENOVATE_GIT_AUTHOR = 'Renovate Bot <renovate@localhost>'
$env:RENOVATE_COMMIT_MESSAGE_SUFFIX = $prTimestamp
$env:LOG_FILE = Join-Path $outDir 'renovate.log'
# Relative path on purpose: Renovate lowercases LOG_FILE, an absolute path would break on case-sensitive file systems
$env:LOG_FILE = "reports/$ts/renovate.log"
$env:LOG_FILE_LEVEL = 'debug'
$env:LOG_FILE_FORMAT = 'pretty'
npx --yes renovate@44.149.3 `