mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 18:06:45 +00:00
Revert "Add support for Oracle JDK (#401)"
This reverts commit 6cdf39a6b6
.
This commit is contained in:
parent
19eeec562b
commit
ee32232727
9 changed files with 2 additions and 359 deletions
|
@ -24,7 +24,7 @@ fi
|
|||
ACTUAL_JAVA_VERSION="$(java -version 2>&1)"
|
||||
echo "Found java version: $ACTUAL_JAVA_VERSION"
|
||||
|
||||
GREP_RESULT=$(echo $ACTUAL_JAVA_VERSION | grep -E "^(openjdk|java) version \"$EXPECTED_JAVA_VERSION")
|
||||
GREP_RESULT=$(echo $ACTUAL_JAVA_VERSION | grep "^openjdk version \"$EXPECTED_JAVA_VERSION")
|
||||
if [ -z "$GREP_RESULT" ]; then
|
||||
echo "::error::Unexpected version"
|
||||
echo "Expected version: $EXPECTED_JAVA_VERSION"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue