Skip to content

Commit 66e39bf

Browse files
committed
Fix #115: use clj-msi latest version for Windows
1 parent ada62bb commit 66e39bf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cli.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ async function toolVersion(
2222
): Promise<string> {
2323
core.debug('=== Check tool version')
2424
if (version === 'latest') {
25+
const url = utils.isWindows() ?
26+
'https://api.github.com/repos/casselc/clj-msi/releases/latest' :
27+
'https://api.github.com/repos/clojure/brew-install/releases/latest'
2528
const res = await client.getJson<{tag_name: string}>(
26-
'https://api.github.com/repos/clojure/brew-install/releases/latest',
29+
url,
2730
githubAuth ? {Authorization: githubAuth} : {}
2831
)
2932
const versionString = res.result?.tag_name

0 commit comments

Comments
 (0)