From 64ea681daafd772cc7446ee109effa09b545f4a7 Mon Sep 17 00:00:00 2001 From: Thomas Farr Date: Mon, 8 Jul 2024 10:16:07 +1200 Subject: [PATCH] Fix building of OpenSearch 3.0.0-SNAPSHOT/main by installing JDK 21 Signed-off-by: Thomas Farr --- .github/actions/start-opensearch/action.yml | 9 ++------- .github/workflows/integration-yaml-tests.yml | 6 ++++++ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/actions/start-opensearch/action.yml b/.github/actions/start-opensearch/action.yml index 8e4eb154e5..02dd2b613c 100644 --- a/.github/actions/start-opensearch/action.yml +++ b/.github/actions/start-opensearch/action.yml @@ -14,12 +14,6 @@ outputs: runs: using: composite steps: - - name: Install Java - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: 11 - - name: Start OpenSearch id: opensearch shell: bash -eo pipefail {0} @@ -27,6 +21,7 @@ runs: if [[ "$RUNNER_OS" == "macOS" ]]; then brew install -q coreutils fi + unset JAVA_HOME OPENSEARCH_HOME=$(realpath ./opensearch-[1-9]*) CONFIG_DIR=$OPENSEARCH_HOME/config CONFIG_FILE=$CONFIG_DIR/opensearch.yml @@ -48,7 +43,7 @@ runs: SECURITY_MINOR="${SECURITY_VERSION_COMPONENTS[1]}" if (( $SECURITY_MAJOR > 2 || ( $SECURITY_MAJOR == 2 && $SECURITY_MINOR >= 12 ) )); then - export OPENSEARCH_INITIAL_ADMIN_PASSWORD=$(LC_ALL=C tr -dc A-Za-z0-9