mirror of
https://github.com/actions/setup-java.git
synced 2025-04-21 02:16:45 +00:00
final fix
This commit is contained in:
parent
74163c09fb
commit
07c2aff141
1 changed files with 3 additions and 0 deletions
|
@ -36,6 +36,9 @@ export async function getJavaAdoptOpenJDK(
|
|||
|
||||
const parsedContents = JSON.parse(contents)[0];
|
||||
|
||||
// turn 13.0.2+8.1 into 13.0.2
|
||||
version = parsedContents.version_data.semver.split('+')[0];
|
||||
|
||||
const jdkFile = await tc.downloadTool(
|
||||
parsedContents.binaries[0].package.link
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue