mirror of
https://github.com/Koenkk/zigbee-OTA.git
synced 2026-09-23 13:08:44 +00:00
fix: cleanup old image refs
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import {existsSync} from "node:fs";
|
||||
import {join} from "node:path";
|
||||
import {BASE_INDEX_MANIFEST_FILENAME, BASE_REPO_URL, PREV_INDEX_MANIFEST_FILENAME, REPO_BRANCH, readManifest} from "./common";
|
||||
|
||||
const baseManifest = readManifest(BASE_INDEX_MANIFEST_FILENAME);
|
||||
|
||||
for (const meta of baseManifest) {
|
||||
const filePath = decodeURIComponent(meta.url.replace(BASE_REPO_URL + REPO_BRANCH, ""));
|
||||
|
||||
if (!existsSync(join(".", filePath))) {
|
||||
console.error(`BASE MISSING: ${filePath}`);
|
||||
}
|
||||
}
|
||||
|
||||
const prevManifest = readManifest(PREV_INDEX_MANIFEST_FILENAME);
|
||||
|
||||
for (const meta of prevManifest) {
|
||||
const filePath = decodeURIComponent(meta.url.replace(BASE_REPO_URL + REPO_BRANCH, ""));
|
||||
|
||||
if (!existsSync(join(".", filePath))) {
|
||||
console.error(`PREV MISSING: ${filePath}`);
|
||||
}
|
||||
}
|
||||
@@ -182,7 +182,7 @@ export function identifyStacks(_github: Octokit, core: typeof CoreApi, _context:
|
||||
break;
|
||||
}
|
||||
|
||||
core.info(`UNKNOWN ${filePath} tagId=${tagId} firstBytes=${data.subarray(0, 16).toString("hex")}`);
|
||||
// core.info(`UNKNOWN ${filePath} tagId=${tagId} firstBytes=${data.subarray(0, 16).toString("hex")}`);
|
||||
}
|
||||
|
||||
if (stack === "Unknown") {
|
||||
|
||||
Reference in New Issue
Block a user