Skip to content

Commit

Permalink
feat: arch64
Browse files Browse the repository at this point in the history
  • Loading branch information
zhilyaev committed Jun 23, 2023
1 parent 916d341 commit 42cf6fc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import * as core from '@actions/core'
import * as cache from '@actions/tool-cache'

const toolName = 'helmwave'
const downloadUrl = 'https://github.com/helmwave/helmwave/releases/download'


export async function run() {
Expand All @@ -24,14 +25,14 @@ export function getURL(version: string): string {
const arch = os.arch()
switch (os.type()) {
case 'Linux':
return util.format('https://github.com/helmwave/helmwave/releases/download/v%s/helmwave_%s_linux_%s.tar.gz', version, version, arch)
return util.format('/v%s/helmwave_%s_linux_%s.tar.gz',downloadUrl, version, version, arch)

case 'Darwin':
return util.format('https://github.com/helmwave/helmwave/releases/download/v%s/helmwave_%s_darwin_%s.tar.gz', version, version, arch)
return util.format('%s/v%s/helmwave_%s_darwin_%s.tar.gz',downloadUrl, version, version, arch)

case 'Windows_NT':
default:
return util.format('https://github.com/helmwave/helmwave/releases/download/v%s/helmwave_%s_windows_%s.zip', version, version, arch)
return util.format('%s/v%s/helmwave_%s_windows_%s.zip', downloadUrl, version, version, arch)
}
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "setup-helmwave-action",
"version": "0.1.0",
"version": "0.3.0",
"description": "Setup helmwave",
"author": "Dmitrii Zhiliaev",
"main": "index.ts",
Expand Down

0 comments on commit 42cf6fc

Please sign in to comment.