Skip to content

Commit a1c6c9c

Browse files
Updated advanced-usage.md (#622)
* Update advanced-usage.md * Update advanced-usage.md * Update advanced-usage.md * Update README.md * Update advanced-usage.md
1 parent 99b8673 commit a1c6c9c

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ steps:
9191
#### Supported version syntax
9292
The `java-version` input supports an exact version or a version range using [SemVer](https://semver.org/) notation:
9393
- major versions: `8`, `11`, `16`, `17`, `21`
94-
- more specific versions: `17.0`, `11.0`, `11.0.4`, `8.0.232`, `8.0.282+8`
95-
- early access (EA) versions: `15-ea`, `15.0.0-ea`, `15.0.0-ea.2`, `15.0.0+2-ea`
94+
- more specific versions: `8.0.282+8`, `8.0.232`, `11.0`, `11.0.4`, `17.0`
95+
- early access (EA) versions: `15-ea`, `15.0.0-ea`
9696

9797
#### Supported distributions
9898
Currently, the following distributions are supported:

docs/advanced-usage.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -526,19 +526,19 @@ steps:
526526
```
527527

528528
## Java version file
529-
If the `java-version-file` input is specified, the action will extract the version from the file and install it.
530-
531-
Supported files are .java-version and .tool-versions.
532-
In .java-version file, only the version should be specified, e.g., 17.0.7.
533-
In .tool-versions file, java version should be preceded by the java keyword, e.g., java 17.0.7.
534-
.java-version recognizes all variants of the version description according to [jenv](https://github.com/jenv/jenv) and .tool-version recognizes all variants of the version description according to [asdf](https://github.com/asdf-vm/asdf).
535-
536-
If both java-version and java-version-file inputs are provided, the java-version input will be used.
529+
If the `java-version-file` input is specified, the action will extract the version from the file and install it.
530+
531+
Supported files are .java-version and .tool-versions.
532+
In .java-version file, only the version should be specified (e.g., 17.0.7).
533+
In .tool-versions file, java version should be preceded by the java keyword (e.g., java 17.0.7).
534+
The `.java-version` file recognizes all variants of the version description according to [jenv](https://github.com/jenv/jenv). Similarly, the `.tool-versions` file supports version specifications in accordance with [asdf](https://github.com/asdf-vm/asdf) standards, adhering to Semantic Versioning (semver).
535+
536+
If both java-version and java-version-file inputs are provided, the java-version input will be used.
537537

538538
Valid entry options:
539539
```
540540
major versions: 8, 11, 16, 17, 21
541-
more specific versions: 1.8.0.2, 17.0, 11.0, 11.0.4, 8.0.232, 8.0.282+8
541+
more specific versions: 8.0.282+8, 8.0.232, 11.0, 11.0.4, 17.0
542542
early access (EA) versions: 15-ea, 15.0.0-ea
543543
versions with specified distribution: openjdk64-11.0.2
544544
```

0 commit comments

Comments
 (0)