only validate new release
This commit is contained in:
parent
aa1faf0f6f
commit
2ca64a974c
@ -21,7 +21,7 @@ const newVersion = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
async function updateManifest() {
|
async function updateManifest() {
|
||||||
await validVersion(newVersion);
|
await validVersion(newVersion);
|
||||||
|
|
||||||
// Add the new version to the manifest
|
// Add the new version to the manifest
|
||||||
jsonData[0].versions.unshift(newVersion);
|
jsonData[0].versions.unshift(newVersion);
|
||||||
@ -31,14 +31,6 @@ async function updateManifest() {
|
|||||||
console.log('Manifest updated successfully.');
|
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) {
|
async function validVersion(version) {
|
||||||
console.log(`Validating version ${version.version}...`);
|
console.log(`Validating version ${version.version}...`);
|
||||||
|
|
||||||
@ -112,8 +104,7 @@ async function downloadFile(url, destinationPath, redirects = 5) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
await updateManifest();
|
await updateManifest();
|
||||||
await validateJSON();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
run();
|
run();
|
Loading…
x
Reference in New Issue
Block a user