Skip to content

Commit

Permalink
Use input variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Giovanni007 committed Sep 19, 2023
1 parent 9b17d61 commit ae5dd0d
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/actions/maven-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ inputs:
description: "Path to the settings.xml file to be used for the release"
required: false
default: ${{ github.workspace }}/maven-config/settings.xml
java-version:
description: the desired Java version
required: false
default: "11"
java-distribution:
description: the desired Java distribution
required: false
default: "temurin"

runs:
using: composite
Expand Down Expand Up @@ -73,12 +81,12 @@ runs:
tag: ${{ env.RELEASE_VERSION }}
repository-directory: ${{ env.REPO_DIR }}

- name: Set up JDK 17
- name: Set up JDK
if: steps.check-tag.outputs.exists == 'false'
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
java-version: ${{ inputs.java-version }}
distribution: ${{ inputs.java-distribution }}
cache: 'maven'

- name: Configure Maven settings
Expand Down

0 comments on commit ae5dd0d

Please sign in to comment.