mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 18:06:45 +00:00
build
This commit is contained in:
parent
d5d37d43c2
commit
680565b9c5
2 changed files with 8 additions and 4 deletions
6
dist/setup/index.js
vendored
6
dist/setup/index.js
vendored
|
@ -105056,8 +105056,10 @@ function run() {
|
|||
const checkLatest = util_1.getBooleanInput(constants.INPUT_CHECK_LATEST, false);
|
||||
let toolchainIds = core.getMultilineInput(constants.INPUT_MVN_TOOLCHAIN_ID);
|
||||
if (!versions.length) {
|
||||
const contents = fs_1.default.readFileSync('.java-version').toString();
|
||||
core.info(contents);
|
||||
core.debug("JAVA_VERSION input is empty, looking for .java-version file");
|
||||
const versionFileName = '.java-version';
|
||||
const contents = fs_1.default.readFileSync(versionFileName).toString().trim();
|
||||
versions.push(contents);
|
||||
}
|
||||
if (versions.length !== toolchainIds.length) {
|
||||
toolchainIds = [];
|
||||
|
|
|
@ -21,8 +21,10 @@ async function run() {
|
|||
let toolchainIds = core.getMultilineInput(constants.INPUT_MVN_TOOLCHAIN_ID);
|
||||
|
||||
if (!versions.length) {
|
||||
const contents = fs.readFileSync('.java-version').toString();
|
||||
core.info(contents)
|
||||
core.debug("JAVA_VERSION input is empty, looking for .java-version file")
|
||||
const versionFileName = '.java-version'
|
||||
const contents = fs.readFileSync(versionFileName).toString().trim();
|
||||
versions.push(contents)
|
||||
}
|
||||
|
||||
if (versions.length !== toolchainIds.length) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue