Skip to content

Commit

Permalink
Skip labels with no builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Gudahtt committed Dec 20, 2024
1 parent 6ec646c commit 201308c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions development/metamaskbot-build-announce.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,16 +111,20 @@ async function start() {
const verifiedBuildMap = {};
await Promise.all(
Object.entries(buildMap).map(async ([label, builds]) => {
verifiedBuildMap[label] = {};
const verifiedBuilds = {};
await Promise.all(
Object.entries(builds).map(async ([platform, url]) => {
if (await artifactExists(url)) {
verifiedBuildMap[label][platform] = url;
verifiedBuilds[platform] = url;
} else {
console.warn(`Build missing: ${url}`);
}
}),
);
// Skip labels with no builds
if (Object.keys(verifiedBuilds).length > 0) {
verifiedBuildMap[label] = verifiedBuilds;
}
}),
);

Expand Down

0 comments on commit 201308c

Please sign in to comment.