Use a relative LOG_FILE path (Renovate lowercases it)
This commit is contained in:
1 parent
f25441ffdc
commit
717fa93afc
2 files changed
+6
-3
No files matched your search
@@ -3,13 +3,15 @@
|
|||||||
# Renovate requires Node.js >= 24.11
|
# 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" }
|
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>/
|
# 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'
|
$report = Join-Path $outDir 'renovate-report.json'
|
||||||
New-Item -ItemType Directory -Force -Path $outDir | Out-Null
|
New-Item -ItemType Directory -Force -Path $outDir | Out-Null
|
||||||
|
|
||||||
Push-Location (Join-Path $PSScriptRoot '..') # repository root
|
Push-Location (Join-Path $PSScriptRoot '..') # repository root
|
||||||
# Debug log file: console output in the same format, but at debug level
|
# 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_LEVEL = 'debug'
|
||||||
$env:LOG_FILE_FORMAT = 'pretty'
|
$env:LOG_FILE_FORMAT = 'pretty'
|
||||||
npx --yes renovate@44.149.3 --platform=local --dry-run=lookup --report-type=file --report-path=$report
|
npx --yes renovate@44.149.3 --platform=local --dry-run=lookup --report-type=file --report-path=$report
|
||||||
|
|||||||
@@ -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).
|
# 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_GIT_AUTHOR = 'Renovate Bot <renovate@localhost>'
|
||||||
$env:RENOVATE_COMMIT_MESSAGE_SUFFIX = $prTimestamp
|
$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_LEVEL = 'debug'
|
||||||
$env:LOG_FILE_FORMAT = 'pretty'
|
$env:LOG_FILE_FORMAT = 'pretty'
|
||||||
npx --yes renovate@44.149.3 `
|
npx --yes renovate@44.149.3 `
|
||||||
|
|||||||
Reference in new issue
Block a user