mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 09:56:46 +00:00
build
This commit is contained in:
parent
d5d37d43c2
commit
680565b9c5
2 changed files with 8 additions and 4 deletions
|
@ -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