mirror of
https://github.com/actions/setup-java.git
synced 2025-11-20 15:24:07 +00:00
chore: format and rebuild
This commit is contained in:
parent
ebfc458f30
commit
d6f9a136b1
5489
dist/cleanup/index.js
vendored
5489
dist/cleanup/index.js
vendored
File diff suppressed because it is too large
Load Diff
5489
dist/setup/index.js
vendored
5489
dist/setup/index.js
vendored
File diff suppressed because it is too large
Load Diff
@ -59,8 +59,9 @@ export async function createToolchainsSettings({
|
|||||||
// when an alternate m2 location is specified use only that location (no .m2 directory)
|
// when an alternate m2 location is specified use only that location (no .m2 directory)
|
||||||
// otherwise use the home/.m2/ path
|
// otherwise use the home/.m2/ path
|
||||||
await io.mkdirP(settingsDirectory);
|
await io.mkdirP(settingsDirectory);
|
||||||
const originalToolchains =
|
const originalToolchains = await readExistingToolchainsFile(
|
||||||
await readExistingToolchainsFile(settingsDirectory);
|
settingsDirectory
|
||||||
|
);
|
||||||
const updatedToolchains = generateToolchainDefinition(
|
const updatedToolchains = generateToolchainDefinition(
|
||||||
originalToolchains,
|
originalToolchains,
|
||||||
jdkInfo.version,
|
jdkInfo.version,
|
||||||
|
|||||||
@ -144,7 +144,9 @@ export function getVersionFromFileContent(
|
|||||||
? (content.match(javaVersionRegExp)?.groups?.version as string)
|
? (content.match(javaVersionRegExp)?.groups?.version as string)
|
||||||
: '';
|
: '';
|
||||||
|
|
||||||
core.debug(`Parsed version '${capturedVersion}' from file '${versionFileName}'`);
|
core.debug(
|
||||||
|
`Parsed version '${capturedVersion}' from file '${versionFileName}'`
|
||||||
|
);
|
||||||
if (!capturedVersion) {
|
if (!capturedVersion) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user