Skip to content

Commit b893145

Browse files
Merge pull request #2 from humanitec/new-url
feat: support new download url
2 parents da48a38 + 3c07757 commit b893145

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- name: Test Local Action
5656
uses: ./
5757
with:
58-
version: '0.11.0'
58+
version: '0.12.0'
5959

6060
- name: Ensure humctl is installed
6161
run: humctl version

dist/index.js

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ function getDownloadUrl(version: string): string {
3535

3636
const extension = platform === 'windows' ? 'zip' : 'tar.gz'
3737

38-
return `https://storage.googleapis.com/humctl-releases/v${version}/cli_${version}_${platform}_${arch}.${extension}`
38+
if (version === '0.11.0') {
39+
return `https://storage.googleapis.com/humctl-releases/v${version}/cli_${version}_${platform}_${arch}.${extension}`
40+
} else {
41+
return `https://github.com/humanitec/cli/releases/download/v${version}/cli_${version}_${platform}_${arch}.${extension}`
42+
}
3943
}
4044

4145
/**

0 commit comments

Comments
 (0)