diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md index ede356f9..8262eedc 100644 --- a/docs/advanced-usage.md +++ b/docs/advanced-usage.md @@ -528,6 +528,9 @@ steps: ## Java-version file If the `java-version-file` input is specified, the action will try to extract the version from the file and install it. Action is able to recognize all variants of the version description according to [jenv](https://github.com/jenv/jenv). +If both the java-version and the java-version-file inputs are provided then the java-version input is used. +.java-version and .tool-versions are the supported file.In .java-version file, only version should be specified e.g “17.0.7 ”while in .tool-versions file, java version should be followed java keyword e.g “java 17.0.7”. + Valid entry options: ``` major versions: 8, 11, 16, 17, 21