10
0
Fork 0
mirror of https://github.com/Azure/setup-helm.git synced 2026-04-06 23:06:58 +00:00

v3 new release (#89)

This commit is contained in:
github-actions[bot] 2022-07-25 14:01:37 -04:00 committed by GitHub
parent 84b304dfb7
commit b5b231a831
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 6 deletions

View file

@ -13254,8 +13254,10 @@ function getLatestHelmVersion() {
}
}
`);
const releases = repository.releases.nodes.reverse();
const latestValidRelease = releases.find((release) => isValidVersion(release.tagName));
const releases = repository.releases.nodes
.reverse()
.map((node) => node.tagName);
const latestValidRelease = releases.find((tag) => isValidVersion(tag));
if (latestValidRelease)
return latestValidRelease;
}