diff --git a/script/renovate-check.ps1 b/script/renovate-check.ps1 index f6ce863..571d8de 100644 --- a/script/renovate-check.ps1 +++ b/script/renovate-check.ps1 @@ -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// -$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 diff --git a/script/renovate-update.ps1 b/script/renovate-update.ps1 index 4eba467..24d0da3 100644 --- a/script/renovate-update.ps1 +++ b/script/renovate-update.ps1 @@ -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 ' $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 `