diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d642e51..378fdc0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,7 +55,7 @@ jobs: - name: Test Local Action uses: ./ with: - version: '0.11.0' + version: '0.12.0' - name: Ensure humctl is installed run: humctl version diff --git a/dist/index.js b/dist/index.js index 9e3da6d..9398edb 100644 --- a/dist/index.js +++ b/dist/index.js @@ -28629,7 +28629,12 @@ function getDownloadUrl(version) { const platform = mapPlatform(os_1.default.platform()); const arch = mapArch(os_1.default.arch()); const extension = platform === 'windows' ? 'zip' : 'tar.gz'; - return `https://storage.googleapis.com/humctl-releases/v${version}/cli_${version}_${platform}_${arch}.${extension}`; + if (version === '0.11.0') { + return `https://storage.googleapis.com/humctl-releases/v${version}/cli_${version}_${platform}_${arch}.${extension}`; + } + else { + return `https://github.com/humanitec/cli/releases/download/v${version}/cli_${version}_${platform}_${arch}.${extension}`; + } } /** * The main function for the action. diff --git a/src/main.ts b/src/main.ts index e5bcf6f..bb52c6a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -35,7 +35,11 @@ function getDownloadUrl(version: string): string { const extension = platform === 'windows' ? 'zip' : 'tar.gz' - return `https://storage.googleapis.com/humctl-releases/v${version}/cli_${version}_${platform}_${arch}.${extension}` + if (version === '0.11.0') { + return `https://storage.googleapis.com/humctl-releases/v${version}/cli_${version}_${platform}_${arch}.${extension}` + } else { + return `https://github.com/humanitec/cli/releases/download/v${version}/cli_${version}_${platform}_${arch}.${extension}` + } } /**