* 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.
* 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
* Removed empty try catch
* Initial commit
* Compiled to js
* Escape slash for nodejs
* Updating getStableHelmVersion test
* Removing old versions of run
* Added comment on getLatestHelmVersion and variable for helm release url to command
* Pushing recent changes before computer reset
* Latest getLatestHelmVersion iteration
* Removed test
* Testing async test
* getLatestHelmVersion refactor
* fixed method to access helm releses JSON
* Edited comment on isValidVersion
* Removed old integration tests
* Small temp test
* Removed IntegrationTests path
* Updated package-lock.json and removed unused dep
* Integration testing
* Fixed if statement in run command
* Added exit
* Double brackets for new test
* Added version confirmation output and different check for version
* Helm 3.7.2 test
* added env to workflow paths
* adjusted env in workflow paths
* 3.5.0 tests
* Requested changes
* Fixed downloadHelm test
* Clean up for release
* Updated CODEOWNERS
* Updated CODEOWNERS
* Adding graphql to find out latest helm version of specified type
* Updating package-loc.json
* Updating js file
* Fixing PR comments
* Adding feature flag as environment variable
* Changing feature flag name
* Updating package-loc.json