Skip to content

Commit

Permalink
Fetch version in step (#556)
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Ohlsen <[email protected]>
  • Loading branch information
ohltyler authored Jul 18, 2023
1 parent e6d15ec commit 3863e46
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/remote-integ-tests-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,6 @@ jobs:
- run: node -v
- run: yarn -v

- name: Get OpenSearch version
# Need to use bash to avoid having a windows/linux specific step
shell: bash
run: |
cd OpenSearch-Dashboards/plugins/anomaly-detection-dashboards-plugin
OPENSEARCH_VERSION=$(node -p "require('./opensearch_dashboards.json').opensearchDashboardsVersion")-SNAPSHOT
echo "Using OpenSearch version $OPENSEARCH_VERSION"
- name: Checkout Anomaly-Detection
uses: actions/checkout@v2
with:
Expand All @@ -84,8 +76,11 @@ jobs:
- name: Run OpenSearch with plugin
run: |
cd anomaly-detection
./gradlew run -Dopensearch.version=$OPENSEARCH_VERSION &
timeout 300 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:9200)" != "200" ]]; do sleep 5; done'
CONFIG_PATH=../OpenSearch-Dashboards/plugins/anomaly-detection-dashboards-plugin/opensearch_dashboards.json
OPENSEARCH_VERSION=$(node -p "require('$CONFIG_PATH').opensearchDashboardsVersion")-SNAPSHOT
echo "Using OpenSearch version $OPENSEARCH_VERSION"
./gradlew run -Dopensearch.version=$OPENSEARCH_VERSION &
timeout 300 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:9200)" != "200" ]]; do sleep 5; done'
shell: bash

- name: Bootstrap the plugin
Expand Down

0 comments on commit 3863e46

Please sign in to comment.