mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 09:56:46 +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];
|
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…
Add table
Add a link
Reference in a new issue