renovate-check: store timestamped reports under reports/
This commit is contained in:
1 parent
7ddc642b3b
commit
12d09f0c44
2 files changed
+4
-1
No files matched your search
@@ -2,3 +2,4 @@ node_modules/
|
|||||||
bin/
|
bin/
|
||||||
obj/
|
obj/
|
||||||
.forgejo-token
|
.forgejo-token
|
||||||
|
reports/
|
||||||
@@ -2,7 +2,9 @@
|
|||||||
# and changes nothing. Found updates are read from the JSON report and printed.
|
# and changes nothing. Found updates are read from the JSON report and printed.
|
||||||
# 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 = 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
|
Push-Location (Join-Path $PSScriptRoot '..') # repository root
|
||||||
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
|
||||||
|
|||||||
Reference in new issue
Block a user