Skip to content

Commit

Permalink
Don't consider GitHub releases without enough files attached
Browse files Browse the repository at this point in the history
Fixes #12
  • Loading branch information
oprypin committed Apr 26, 2022
1 parent 01c2df4 commit f4525e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,9 @@ async function getLatestTag({repo, prefix}) {
const tags = [];
let assurance = 25;
for await (const item of getItemsFromPages(pages)) {
if (item["assets"].length < 3) {
continue;
}
const tag = item["tag_name"];
if (!prefix || tag === prefix || tag.startsWith(prefix + ".")) {
tags.push(tag);
Expand Down

0 comments on commit f4525e0

Please sign in to comment.