Install a specific version of helm binary on the runner.
Acceptable values are latest or any semantic version string such as v4.3.1. The latest value follows Helm's current stable release and can change major versions.
- uses: azure/setup-helm@v5
with:
version: '<version>' # default is latest (stable)
id: installAlternatively, the version can be read from a .tool-versions file (the format used by asdf and mise) via the version-file input:
- uses: azure/setup-helm@v5.0.0
with:
version-file: .tool-versions
id: installThe action reads the version declared for the helm tool, for example:
helm 4.3.1
If both version and version-file are set, an explicitly requested version takes precedence and version-file is ignored (a warning is emitted). Because version defaults to latest, version-file is only ignored when you set version to a specific value other than latest; if version is left at its default, the version from version-file is used.
Note
If fetching the latest version fails, the action retries a few times and then uses the built-in fallback version (currently v4.3.1). This is a last-known stable version and can become a major version behind what latest resolves to. To fail the step with the underlying error instead, set latest-fallback to 'false':
- uses: azure/setup-helm@v5
with:
version: 'latest'
latest-fallback: 'false'If you rely on a certain version, you should explicitly request that version instead of latest.
The cached helm binary path is prepended to the PATH environment variable as well as stored in the helm-path output variable. Refer to the action metadata file for details about all the inputs https://github.com/Azure/setup-helm/blob/master/action.yml
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
setup-helm is an open source project that is not covered by the Microsoft Azure support policy. Please search open issues here, and if your issue isn't already represented please open a new one. The project maintainers will respond to the best of their abilities.