From fc1780360a4ec74b1d6d35357237967b9c55cc4a Mon Sep 17 00:00:00 2001 From: Maxim Lobanov Date: Mon, 15 Mar 2021 11:15:09 +0300 Subject: [PATCH] update readme --- README.md | 2 +- docs/advanced-usage.md | 16 +++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index fd636f1c..b109577e 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ This action provides the following functionality for GitHub Actions runners: - V2 requires you to specify distribution along with the version. V1 defaults to Zulu OpenJDK, only version input is required. Follow [the migration guide](docs/switching-to-v2.md) to switch from V1 to V2 ## Usage -Input `distribution` is mandatory. See [Supported distributions](../README.md#Supported-distributions) section for a list of available options. +Inputs `java-version` and `distribution` are mandatory. See [Supported distributions](../README.md#Supported-distributions) section for a list of available options. ### Basic ```yaml diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md index c45bd0c7..96d31fbf 100644 --- a/docs/advanced-usage.md +++ b/docs/advanced-usage.md @@ -13,7 +13,7 @@ See [action.yml](../action.yml) for more details on task inputs. ## Selecting a Java distribution -Input `distribution` is mandatory and needs to be provided. See [Supported distributions](../README.md#Supported-distributions) for a list of available options. +Inputs `java-version` and `distribution` are mandatory and needs to be provided. See [Supported distributions](../README.md#Supported-distributions) for a list of available options. ### Adopt ```yaml @@ -133,11 +133,11 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up JDK 8 + - name: Set up JDK 11 uses: actions/setup-java@v2-preview with: distribution: '' - java-version: '8' + java-version: '11' - name: Build with Maven run: mvn -B package --file pom.xml @@ -150,6 +150,8 @@ jobs: - name: Set up Apache Maven Central uses: actions/setup-java@v2-preview with: # running setup-java again overwrites the settings.xml + distribution: 'adopt' + java-version: '11' server-id: maven # Value of the distributionManagement/repository/id field of the pom.xml server-username: MAVEN_USERNAME # env variable for username in deploy server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy @@ -239,11 +241,11 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up JDK 8 + - name: Set up JDK 11 uses: actions/setup-java@v2-preview with: distribution: '' - java-version: '8' + java-version: '11' - name: Build with Gradle run: gradle build @@ -271,11 +273,11 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up JDK 8 for Shared Runner + - name: Set up JDK 11 for Shared Runner uses: actions/setup-java@v2-preview with: distribution: '' - java-version: '8' + java-version: '11' server-id: github # Value of the distributionManagement/repository/id field of the pom.xml settings-path: ${{ github.workspace }} # location for the settings.xml file