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

Update run.ts

This commit is contained in:
Oliver King 2022-10-26 18:56:40 -04:00 committed by GitHub
parent 6909a53305
commit 610f490f63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,12 +71,11 @@ export async function getLatestHelmVersion(): Promise<string> {
}
`
)
const latestValidRelease: string = repository.releases.nodes
.find(
({tagName, isLatest, isDraft, isPreRelease}) =>
isValidVersion(tagName) && isLatest && !isDraft && !isPreRelease
)?.tagName
const latestValidRelease: string = repository.releases.nodes.find(
({ tagName, isLatest, isDraft, isPreRelease }) =>
isValidVersion(tagName) && isLatest && !isDraft && !isPreRelease
)?.tagName;
if (latestValidRelease) return latestValidRelease
} catch (err) {
core.warning(