only validate new release
This commit is contained in:
parent
2cf9f4fb99
commit
1973dee1f8
@ -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();
|
Loading…
x
Reference in New Issue
Block a user