From 12d09f0c442c953176c814eb86117d5d8e476243 Mon Sep 17 00:00:00 2001 From: Demo Date: Sun, 11 Oct 2026 21:11:42 +0200 Subject: [PATCH] renovate-check: store timestamped reports under reports/ --- .gitignore | 1 + script/renovate-check.ps1 | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 6a5184c..121bcfd 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ node_modules/ bin/ obj/ .forgejo-token +reports/ diff --git a/script/renovate-check.ps1 b/script/renovate-check.ps1 index 3880b1f..a9be5b1 100644 --- a/script/renovate-check.ps1 +++ b/script/renovate-check.ps1 @@ -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