Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ runs:
- name: 'Download Java Development Kit'
id: download
shell: bash
env:
WEBSITE: "${{ inputs.website }}"
RELEASE: "${{ inputs.release }}"
VERSION: "${{ inputs.version }}"
INSTALL_AS_VERSION: "${{ inputs.install-as-version }}"
URI: "${{ inputs.uri }}"
run: |
echo "::group::Prepare download..."
JAVA=$JAVA_HOME_21_X64/bin/java
Expand All @@ -54,18 +60,18 @@ runs:
$JAVA --version
DOWNLOAD=$GITHUB_ACTION_PATH/src/Download.java
echo "::endgroup::"
if [ ! -z "${{ inputs.uri }}" ]; then
if [ ! -z "$URI" ]; then
$JAVA \
-Dinstall-as-version="${{ inputs.install-as-version }}" \
-Dinstall-as-version="$INSTALL_AS_VERSION" \
$DOWNLOAD \
${{ inputs.uri }}
$URI
else
$JAVA \
-Dinstall-as-version="${{ inputs.install-as-version }}" \
-Dinstall-as-version="$INSTALL_AS_VERSION" \
$DOWNLOAD \
${{ inputs.website }} \
${{ inputs.release }} \
${{ inputs.version }}
$WEBSITE \
$RELEASE \
$VERSION
fi
- name: 'Install Java Development Kit'
if: ${{ inputs.install == 'true' }}
Expand Down
1 change: 0 additions & 1 deletion test/Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ static void checkAllOracleJDKs() {
System.out.println();
System.out.println("// oracle.com - latest");
checkOracleJDK("24", "latest");
checkOracleJDK("23", "latest");
checkOracleJDK("21", "latest");

System.out.println();
Expand Down