From 1973dee1f835ad2b31ea590b8e24adc834d52d04 Mon Sep 17 00:00:00 2001 From: Kilian von Pflugk Date: Sun, 26 May 2024 01:11:38 +0200 Subject: [PATCH] only validate new release --- validate-and-update-manifest.js | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/validate-and-update-manifest.js b/validate-and-update-manifest.js index e45f937..c87b65d 100644 --- a/validate-and-update-manifest.js +++ b/validate-and-update-manifest.js @@ -21,8 +21,8 @@ const newVersion = { }; async function updateManifest() { - await validVersion(newVersion); - + await validVersion(newVersion); + // Add the new version to the manifest jsonData[0].versions.unshift(newVersion); @@ -31,14 +31,6 @@ async function updateManifest() { console.log('Manifest updated successfully.'); } -async function validateJSON() { - for (const item of jsonData) { - for (const version of item.versions) { - await validVersion(version); - } - } -} - async function validVersion(version) { console.log(`Validating version ${version.version}...`); @@ -112,8 +104,7 @@ async function downloadFile(url, destinationPath, redirects = 5) { } async function run() { - await updateManifest(); - await validateJSON(); + await updateManifest(); } run(); \ No newline at end of file