docs changes

This commit is contained in:
Evgenii Korolevskii 2022-12-07 08:59:32 +01:00
parent 5e09f33af6
commit c91175d89e
2 changed files with 4 additions and 2 deletions

View file

@ -23,7 +23,9 @@ This action allows you to work with Java and Scala projects.
## Usage ## Usage
- `java-version`: The Java version to set up. Takes a whole or [semver](#supported-version-syntax) Java version. If not specified, the action will expect `.java-version` file to be in the repository root. See more details in [about `.java-version` file](docs/advanced-usage.md#Java-version-file). - `java-version`: The Java version to set up. Takes a whole or [semver](#supported-version-syntax) Java version. If not specified, the action will expect `java-version-file` input to be specified. See more details in [about `.java-version` file](docs/advanced-usage.md#Java-version-file).
- `java-version-file`: The path to the `.java-version` file. See more details in [about `.java-version` file](docs/advanced-usage.md#Java-version-file).
- `distribution`: _(required)_ Java [distribution](#supported-distributions). - `distribution`: _(required)_ Java [distribution](#supported-distributions).

View file

@ -481,7 +481,7 @@ steps:
``` ```
## Java-version file ## Java-version file
If the `java-version` input is not specified, the action will look for a `.java-version` file at the root of the repository. If the file is found, action will try to install the most suitable version. If the `java-version-file` input is specified, the action will try to extract the version from the file and install the most suitable version.
Action is able to recognize all variants of the version description according to [jenv](https://github.com/jenv/jenv). Action is able to recognize all variants of the version description according to [jenv](https://github.com/jenv/jenv).
Valid entry options: Valid entry options:
``` ```