Compare commits

...

9 Commits

Author SHA1 Message Date
Oliver King
091a1614fc Add node modules and compiled JavaScript from main 2022-11-28 18:52:11 +00:00
Oliver King
f2c0f9cf9c Merge branch 'releases/v3' into tmp 2022-11-28 18:51:55 +00:00
Asa Gayle
a4617735aa Added support message (#95) 2022-11-28 13:51:20 -05:00
github-actions[bot]
f382f75448 v3 new release (#101) 2022-10-27 10:04:25 -04:00
Joe Previte
2dafda840c refactor: cleanup GH gql query (#100) 2022-10-27 09:44:25 -04:00
github-actions[bot]
b5b231a831 v3 new release (#89) 2022-07-25 14:01:37 -04:00
github-actions[bot]
84b304dfb7 v3 new release (#87)
add token
2022-07-25 13:23:27 -04:00
github-actions[bot]
e4f3964f67 v3 new release (#84)
swap to graphql
2022-07-11 13:48:02 -04:00
github-actions[bot]
20d2b4f98d v3 new release (#80) 2022-06-27 14:17:15 -04:00
4 changed files with 11892 additions and 8 deletions

3
.gitignore vendored
View File

@@ -11,8 +11,6 @@ pids
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
@@ -64,4 +62,3 @@ node_modules
coverage
# Transpiled JS
lib/

View File

@@ -32,3 +32,7 @@ provided by the bot. You will only need to do this once across all repos using o
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
## Support
setup-helm is an open source project that is [**not** covered by the Microsoft Azure support policy](https://support.microsoft.com/en-us/help/2941892/support-for-linux-and-open-source-technology-in-azure). [Please search open issues here](https://github.com/Azure/setup-helm/issues), and if your issue isn't already represented please [open a new one](https://github.com/Azure/setup-helm/issues/new/choose). The project maintainers will respond to the best of their abilities.

11879
lib/index.js Normal file

File diff suppressed because one or more lines are too long

View File

@@ -59,19 +59,23 @@ export async function getLatestHelmVersion(): Promise<string> {
`
{
repository(name: "helm", owner: "helm") {
releases(last: 100) {
releases(first: 100, orderBy: {field: CREATED_AT, direction: DESC}) {
nodes {
tagName
isLatest
isDraft
isPrerelease
}
}
}
}
`
)
const releases: string[] = repository.releases.nodes
.reverse()
.map((node: {tagName: string}) => node.tagName)
const latestValidRelease = releases.find((tag) => isValidVersion(tag))
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(