From 96ca72257c33f7025512e8d2d95c5c90444e15bc Mon Sep 17 00:00:00 2001 From: mahabaleshwars <147705296+mahabaleshwars@users.noreply.github.com> Date: Wed, 17 Apr 2024 12:05:35 +0530 Subject: [PATCH 1/2] Update advanced-usage.md --- docs/advanced-usage.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md index c3cf42d0..d32e2eaa 100644 --- a/docs/advanced-usage.md +++ b/docs/advanced-usage.md @@ -526,14 +526,14 @@ steps: ``` ## Java version file -If the `java-version-file` input is specified, the action will extract the version from the file and install it. - -Supported files are .java-version and .tool-versions. -In .java-version file, only the version should be specified, e.g., 17.0.7. -In .tool-versions file, java version should be preceded by the java keyword, e.g., java 17.0.7. -.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). - -If both java-version and java-version-file inputs are provided, the java-version input will be used. + If the `java-version-file` input is specified, the action will extract the version from the file and install it. + + Supported files are .java-version and .tool-versions. + In .java-version file, only the version should be specified, e.g., 17.0.7. + In .tool-versions file, java version should be preceded by the java keyword, e.g., java 17.0.7. + .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) which also satisfies Semantic Versioning (semver). + + If both java-version and java-version-file inputs are provided, the java-version input will be used. Valid entry options: ``` From cc03ef3c0bee94a271ea0dec173a4a7b5c3d502e Mon Sep 17 00:00:00 2001 From: mahabaleshwars <147705296+mahabaleshwars@users.noreply.github.com> Date: Thu, 18 Apr 2024 18:18:09 +0530 Subject: [PATCH 2/2] Update advanced-usage.md --- docs/advanced-usage.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md index d32e2eaa..b0bbb7d6 100644 --- a/docs/advanced-usage.md +++ b/docs/advanced-usage.md @@ -529,9 +529,9 @@ steps: If the `java-version-file` input is specified, the action will extract the version from the file and install it. Supported files are .java-version and .tool-versions. - In .java-version file, only the version should be specified, e.g., 17.0.7. - In .tool-versions file, java version should be preceded by the java keyword, e.g., java 17.0.7. - .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) which also satisfies Semantic Versioning (semver). + In .java-version file, only the version should be specified (e.g., 17.0.7). + In .tool-versions file, java version should be preceded by the java keyword (e.g., java 17.0.7). + 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). If both java-version and java-version-file inputs are provided, the java-version input will be used.