Commit Graph
27 Commits
Author SHA1 Message Date
Thomas Seljen TvedtandGitHub 531fb92ec6 fix: retry latest version lookup and add latest-fallback opt-out (#303)
* fix: retry latest version lookup and add latest-fallback opt-out

Resolving 'version: latest' made a single request to
https://get.helm.sh/helm-latest-version and, on any failure, silently
installed the hard-coded default version. Since 'latest' resolves to
Helm 4, that fallback moves a job back a whole major version while the
step stays green.

Retry the lookup a few times with a short backoff, treat non-2xx
responses as failures instead of installing the response body, and add
a 'latest-fallback' input so callers can make the step fail instead of
installing the default version. The default keeps the existing
behavior.

* fix: do not fall back across a major version by default

Make 'latest-fallback' default to 'false', so an exhausted lookup fails
the step with the underlying error instead of installing the built-in
default version, which can be a major behind what 'latest' resolves to.
Setting the input to 'true' restores the previous behavior.

* fix: keep latest-fallback on by default

Installing the built-in default version when 'latest' cannot be
determined is documented behavior for v5, so 'latest-fallback' now
defaults to 'true' and callers opt out with 'false'. The warning
emitted on fallback names the input, so the downgrade is easy to trace
and to turn off.

* fix: cancel the unread body of a failed latest version response

A non-2xx response from the latest version URL is turned into an error
without reading its body. Cancel the body first, so its connection is
released before the next attempt instead of waiting for garbage
collection.
2026-11-04 10:50:29 -08:00
somazandGitHub 017211e1b1 Add version-file input to read the Helm version from a .tool-versions file (#281)
* feat: add version-file input to read helm version from .tool-versions

* feat: validate semver shape of helm version from .tool-versions
2026-06-23 13:07:39 -07:00
Ogheneobukome EjaifeandGitHub 95ecf4967d Bump version to 5.0.1 and update CHANGELOG with recent changes (#287) 2026-06-23 13:05:33 -07:00
David GameroandGitHub 3894c84c36 chore(release): v5.0.0 (#265) 2026-03-24 09:35:40 +13:00
fb8fa40706 Update default helm version to 3.18.3 (#194)
* Update default helm version to 3.18.3

* Update default version everywhere

---------

Co-authored-by: Suneha Bose <123775811+bosesuneha@users.noreply.github.com>
2025-08-06 17:29:05 -04:00
TatsinnitandGitHub 0e8654bb94 Release setup-helm version 4.3.0 (#162) 2025-02-17 22:54:56 -08:00
David GameroandGitHub df50d879fa Release v4.2.0 (#134)
* Update CHANGELOG.md

* Update package.json

* Update README.md
2024-04-15 15:41:59 -04:00
Oliver KingandGitHub 4c255dde26 publish version 4.1.0 (#131)
* publish version 4.1.0

* update version
2024-03-01 11:45:44 -05:00
Yoann RodièreandGitHub efbd96d464 Fix action version in README.md (#129)
`v4` is not a valid tag, `v4.0.0` is.

See https://github.com/Azure/setup-helm/tags
2024-02-27 17:32:24 -05:00
David GameroandGitHub 859dc38e9a v4 readme update (#127) 2024-02-13 16:11:44 -05:00
Dmytro BondarandGitHub 208de6bd49 Upgrade action to use node20 (#121)
* Action update:

- Bump all dependencies
- Rewrite `getLatestHelmVersion()` function without graphql

* Bump stableHelmVersion

* Update readme and action.yaml

* Revert and rewrite with @octokit/action

* Add latest to integration test

* Bump action's versions

* Set github.token as default input

* Replace deprecated jest methods

* Add prettier to dev dependencies, fix prettier issues
2024-02-08 13:49:56 -05:00
TekoandGitHub ac5ee1fca8 Update helm to v3.11.1 (#108) 2023-02-16 19:41:09 -05:00
TekoandGitHub 3419a8fa8f Update README to reflect current default helm version (#106) 2023-01-10 13:26:20 -05:00
Asa GayleandGitHub a4617735aa Added support message (#95) 2022-11-28 13:51:20 -05:00
Oliver KingandGitHub 17cd77473c fix auth (#86) 2022-07-25 13:13:50 -04:00
Oliver KingandGitHub 484a64052d Swap to GraphQL and add logging (#83)
* swap to graphql

* add logs

* swap to group log

* fix test
2022-07-11 10:12:11 -04:00
Bert RoosandGitHub 6e32762c2e Minor spelling correction in README.md (#81) 2022-07-06 10:45:43 -04:00
7f0153c54c Vidya reddy prettier (#75)
* upgraded to Node16

* Enforce Prettier

* code fix

* Update package-lock.json

resolved the conflicts.

* executed prettier

Co-authored-by: Vidya Reddy <vidyareddy@microsoft.com>
2022-06-27 18:27:44 -04:00
Oliver KingandGitHub a14110f6e6 increment version in README to v3 (#79) 2022-06-27 14:20:10 -04:00
Oliver KingandGitHub 39f78708c2 add version support message (#69) 2022-04-11 11:05:03 -04:00
shigupt202andGitHub 7e3c8fd604 Update README.md (#48) 2021-08-10 19:41:32 +05:30
rgsubhandGitHub 91b7d21636 Changed the documentation to specify v before 'version' and code changes to append 'v' if it not provided in version (#11) (#15)
* Chnaged the documentation to sepcify v before 'version'

* append v to version incase it does not already include

* review comments fix
2020-05-14 12:16:24 +05:30
Deepak SattirajuandGitHub f404b8932e Update README.md 2020-02-27 14:58:14 +05:30
Matthew AbramsandGitHub d0d63812ab Use correct version string format in setup instructions
If somebody uses `1.15.0` instead of `v1.15.0` the installation will fail, this adjusts instructions to be slightly clearer.
2019-12-17 16:21:45 -08:00
Anumita Shenoy fe2c706cad Added helm binary to the Path environment variable 2019-11-26 17:55:31 +05:30
Anumita Shenoy 8552a6edfe Added setup-helm : Install helm binary 2019-10-04 12:16:40 +05:30
Microsoft Open Source 515f9da9a4 Initial commit 2019-09-23 02:03:35 -07:00