Skip to content

Commit

Permalink
Use toSemVer() for tool name.
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Feb 13, 2024
1 parent 1588b03 commit bf3e45b
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 21 deletions.
24 changes: 15 additions & 9 deletions dist/cleanup/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 16 additions & 10 deletions dist/main/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/graalvm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import {
getLatestPrerelease,
getLatestRelease,
getMatchingTags,
getTaggedRelease
getTaggedRelease,
toSemVer
} from './utils'
import {downloadGraalVMEELegacy} from './gds'
import {downloadTool} from '@actions/tool-cache'
Expand Down Expand Up @@ -125,7 +126,7 @@ export async function findLatestGraalVMJDKCEJavaVersion(
}

function determineToolName(javaVersion: string, isCommunity: boolean) {
return `graalvm${isCommunity ? '-community' : ''}-jdk-${javaVersion}_${
return `graalvm${isCommunity ? '-community' : ''}-jdk-${toSemVer(javaVersion)}_${
c.JDK_PLATFORM
}-${c.JDK_ARCH}_bin`
}
Expand Down

0 comments on commit bf3e45b

Please sign in to comment.