renovate-check: store timestamped reports under reports/

This commit is contained in:
Demo committed 2026-10-11 21:11:42 +02:00
1 parent 7ddc642b3b
commit 12d09f0c44
2 files changed
+4 -1

No files matched your search

+1
View File
@@ -2,3 +2,4 @@ node_modules/
bin/
obj/
.forgejo-token
reports/
+3 -1
View File
@@ -2,7 +2,9 @@
# and changes nothing. Found updates are read from the JSON report and printed.
# 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 = Join-Path ([IO.Path]::GetTempPath()) 'renovate-report.json'
$reportDir = Join-Path (Join-Path $PSScriptRoot '..') 'reports'
$report = Join-Path $reportDir "$(Get-Date -Format 'yyyy-MM-dd-HH-mm-ss-fff')-renovate-report.json"
New-Item -ItemType Directory -Force -Path $reportDir | Out-Null
Push-Location (Join-Path $PSScriptRoot '..') # repository root
npx --yes renovate@44.149.3 --platform=local --dry-run=lookup --report-type=file --report-path=$report