mirror of
https://github.com/actions/setup-java.git
synced 2025-05-21 18:01:46 +00:00
final fix
This commit is contained in:
parent
74163c09fb
commit
07c2aff141
@ -36,6 +36,9 @@ export async function getJavaAdoptOpenJDK(
|
|||||||
|
|
||||||
const parsedContents = JSON.parse(contents)[0];
|
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(
|
const jdkFile = await tc.downloadTool(
|
||||||
parsedContents.binaries[0].package.link
|
parsedContents.binaries[0].package.link
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user