From d864799d5b8e0fa8eba1ab1b54e4a066dadc432e Mon Sep 17 00:00:00 2001 From: Anthony Simmon Date: Fri, 12 Aug 2022 23:06:27 -0400 Subject: [PATCH 1/2] Fixed helmfile github release download url --- task/src/utils.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/task/src/utils.ts b/task/src/utils.ts index 12a734c..9674e7a 100644 --- a/task/src/utils.ts +++ b/task/src/utils.ts @@ -36,16 +36,17 @@ function findHelmfile(rootFolder: string) { } function getHelmfileDownloadURL(version: string): string { + const versionWithoutPrefix = version.replace(/^v/, ""); switch (os.type()) { case "Linux": const architecture = getSupportedLinuxArchitecture(); - return util.format("https://github.com/helmfile/helmfile/releases/download/%s/helmfile_linux_%s", version, architecture); + return util.format("https://github.com/helmfile/helmfile/releases/download/%s/helmfile_%s_linux_%s.tar.gz", version, versionWithoutPrefix, architecture); case "Darwin": - return util.format("https://github.com/helmfile/helmfile/releases/download/%s/helmfile_darwin_amd64", version); + return util.format("https://github.com/helmfile/helmfile/releases/download/%s/helmfile_%s_darwin_amd64.tar.gz", version, versionWithoutPrefix); case "Windows_NT": - return util.format("hhttps://github.com/helmfile/helmfile/releases/download/%s/helmfile_windows_amd64.exe", version); + return util.format("https://github.com/helmfile/helmfile/releases/download/%s/helmfile_%s_windows_amd64.exe.tar.gz", version, versionWithoutPrefix); default: throw Error("Unknown OS type"); From fd46921cbc933ee1b549527ed52ef8beeab2b925 Mon Sep 17 00:00:00 2001 From: Anthony Simmon Date: Fri, 12 Aug 2022 23:10:53 -0400 Subject: [PATCH 2/2] Fixed windows download url --- task/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/task/src/utils.ts b/task/src/utils.ts index 9674e7a..81b47e5 100644 --- a/task/src/utils.ts +++ b/task/src/utils.ts @@ -46,7 +46,7 @@ function getHelmfileDownloadURL(version: string): string { return util.format("https://github.com/helmfile/helmfile/releases/download/%s/helmfile_%s_darwin_amd64.tar.gz", version, versionWithoutPrefix); case "Windows_NT": - return util.format("https://github.com/helmfile/helmfile/releases/download/%s/helmfile_%s_windows_amd64.exe.tar.gz", version, versionWithoutPrefix); + return util.format("https://github.com/helmfile/helmfile/releases/download/%s/helmfile_%s_windows_amd64.tar.gz", version, versionWithoutPrefix); default: throw Error("Unknown OS type");