4
0
Fork 0
mirror of https://github.com/Azure/setup-helm.git synced 2025-11-07 21:16:57 +00:00

Added check for latest

This commit is contained in:
Asa Gayle 2022-02-08 11:10:03 -05:00
parent b3efc63e7e
commit 969d177f06

View file

@ -17,7 +17,7 @@ const helmAllReleasesUrl = "https://api.github.com/repos/helm/helm/releases";
export async function run() {
let version = core.getInput("version", { required: true });
if(version[0] !== "v"){
if(version !== "latest" && version[0] !== "v"){
version = getValidVersion(version);
}
if (version.toLocaleLowerCase() === "latest") {