Skip to content

Commit 36b259b

Browse files
authored
Raise the number of new possible tags (#1162)
1 parent ce3c560 commit 36b259b

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/scripts/tags.js

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,41 @@
11
module.exports = async ({ github, context }) => {
22
const { PACKAGE, META } = process.env
33

4-
const [{ data: currrentTags }, { data: upstreamTags }] = await Promise.all([
4+
const [
5+
{ data: currrentTags1 },
6+
{ data: currrentTags2 },
7+
{ data: upstreamTags1 },
8+
{ data: upstreamTags2 },
9+
] = await Promise.all([
510
github.rest.repos.listTags({
611
owner: context.repo.owner,
712
repo: META.substring(META.indexOf('/') + 1),
813
per_page: 100,
14+
page: 1,
15+
}),
16+
github.rest.repos.listTags({
17+
owner: context.repo.owner,
18+
repo: META.substring(META.indexOf('/') + 1),
19+
per_page: 100,
20+
page: 2,
921
}),
1022
github.rest.repos.listTags({
1123
owner: context.repo.owner,
1224
repo: PACKAGE.substring(PACKAGE.indexOf('/') + 1),
1325
per_page: 100,
26+
page: 1,
27+
}),
28+
github.rest.repos.listTags({
29+
owner: context.repo.owner,
30+
repo: PACKAGE.substring(PACKAGE.indexOf('/') + 1),
31+
per_page: 100,
32+
page: 2,
1433
}),
1534
])
1635

36+
const currrentTags = currrentTags1.concat(currrentTags2)
37+
const upstreamTags = upstreamTags1.concat(upstreamTags2)
38+
1739
const targetTags = await Promise.allSettled(
1840
upstreamTags
1941
.filter((tag) => !currrentTags.find((t) => t.name === tag.name))

0 commit comments

Comments
 (0)