mirror of
https://github.com/actions/setup-java.git
synced 2025-04-19 09:26:46 +00:00
docs changes
This commit is contained in:
parent
5e09f33af6
commit
c91175d89e
2 changed files with 4 additions and 2 deletions
|
@ -23,7 +23,9 @@ This action allows you to work with Java and Scala projects.
|
|||
|
||||
## 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).
|
||||
|
||||
|
|
|
@ -481,7 +481,7 @@ steps:
|
|||
```
|
||||
|
||||
## 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).
|
||||
Valid entry options:
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue