mirror of
https://github.com/earthly/actions-setup.git
synced 2024-12-26 06:21:01 +08:00
parent
6a7e7d67e6
commit
b6ad1e7419
3
dist/setup/index.js
vendored
3
dist/setup/index.js
vendored
@ -90176,7 +90176,8 @@ async function getVersionObject(range, prerelease) {
|
||||
repo: "earthly",
|
||||
per_page: 100,
|
||||
})).filter(release => {
|
||||
return prerelease || !release.prerelease;
|
||||
// we expect each version to have at least 6 assets before it can be considered as latest available version
|
||||
return (prerelease || !release.prerelease) && release.assets?.length > 5;
|
||||
}).reduce((acc, cur) => {
|
||||
// remove 'v' from tag name
|
||||
const tag = cur.tag_name.substring(1);
|
||||
|
2
dist/setup/index.js.map
vendored
2
dist/setup/index.js.map
vendored
File diff suppressed because one or more lines are too long
@ -23,7 +23,8 @@ export async function getVersionObject(
|
||||
per_page: 100,
|
||||
})
|
||||
).filter(release => {
|
||||
return prerelease || !release.prerelease;
|
||||
// we expect each version to have at least 6 assets before it can be considered as latest available version
|
||||
return (prerelease || !release.prerelease) && release.assets?.length > 5;
|
||||
}).reduce((acc, cur) => {
|
||||
// remove 'v' from tag name
|
||||
const tag = cur.tag_name.substring(1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user