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
11
src/run.ts
11
src/run.ts
|
|
@ -71,12 +71,11 @@ export async function getLatestHelmVersion(): Promise<string> {
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
)
|
)
|
||||||
const latestValidRelease: string = repository.releases.nodes
|
const latestValidRelease: string = repository.releases.nodes.find(
|
||||||
.find(
|
({ tagName, isLatest, isDraft, isPreRelease }) =>
|
||||||
({tagName, isLatest, isDraft, isPreRelease}) =>
|
isValidVersion(tagName) && isLatest && !isDraft && !isPreRelease
|
||||||
isValidVersion(tagName) && isLatest && !isDraft && !isPreRelease
|
)?.tagName;
|
||||||
)?.tagName
|
|
||||||
|
|
||||||
if (latestValidRelease) return latestValidRelease
|
if (latestValidRelease) return latestValidRelease
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
core.warning(
|
core.warning(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue