mirror of
https://github.com/actions/setup-java.git
synced 2025-05-21 18:01:46 +00:00
Fix
This commit is contained in:
parent
1d110a99d1
commit
c38b0fe09c
@ -171,6 +171,9 @@ function downloadJava(version) {
|
|||||||
}
|
}
|
||||||
const fileName = refs[0].slice('<a href="'.length, refs[0].length - '">'.length);
|
const fileName = refs[0].slice('<a href="'.length, refs[0].length - '">'.length);
|
||||||
const dest = yield tc.downloadTool(`https://static.azul.com/zulu/bin/${fileName}`);
|
const dest = yield tc.downloadTool(`https://static.azul.com/zulu/bin/${fileName}`);
|
||||||
|
if (dest) {
|
||||||
|
throw new Error(fs.readdirSync(dest).toString());
|
||||||
|
}
|
||||||
return path.join(dest, fileName);
|
return path.join(dest, fileName);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -178,5 +178,8 @@ async function downloadJava(version: string): Promise<string> {
|
|||||||
const dest = await tc.downloadTool(
|
const dest = await tc.downloadTool(
|
||||||
`https://static.azul.com/zulu/bin/${fileName}`
|
`https://static.azul.com/zulu/bin/${fileName}`
|
||||||
);
|
);
|
||||||
|
if (dest) {
|
||||||
|
throw new Error(fs.readdirSync(dest).toString());
|
||||||
|
}
|
||||||
return path.join(dest, fileName);
|
return path.join(dest, fileName);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user