4
0
Fork 0
mirror of https://github.com/Azure/setup-helm.git synced 2025-11-07 04:56:56 +00:00

Fix [object Object] version bug (#88)

* fix auth

* fix tag bug
This commit is contained in:
Oliver King 2022-07-25 13:53:22 -04:00 committed by GitHub
parent 17cd77473c
commit f850d12cb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,10 +68,10 @@ export async function getLatestHelmVersion(): Promise<string> {
} }
` `
) )
const releases = repository.releases.nodes.reverse() const releases: string[] = repository.releases.nodes
const latestValidRelease = releases.find((release: {tagName: string}) => .reverse()
isValidVersion(release.tagName) .map((node: {tagName: string}) => node.tagName)
) const latestValidRelease = releases.find((tag) => isValidVersion(tag))
if (latestValidRelease) return latestValidRelease if (latestValidRelease) return latestValidRelease
} catch (err) { } catch (err) {
core.warning( core.warning(