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:
parent
6909a53305
commit
610f490f63
1 changed files with 5 additions and 6 deletions
|
|
@ -71,11 +71,10 @@ 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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue