From 2ca64a974c6ffad25ccb729e9cac84249b281632 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 | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/validate-and-update-manifest.js b/validate-and-update-manifest.js index d88b2ab..58bf2fc 100644 --- a/validate-and-update-manifest.js +++ b/validate-and-update-manifest.js @@ -21,7 +21,7 @@ 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