Skip to content

Commit

Permalink
Switch download file action to one that supports setting the target file
Browse files Browse the repository at this point in the history
Signed-off-by: Simeon Widdis <[email protected]>
  • Loading branch information
Swiddis committed Sep 18, 2023
1 parent f3ed1af commit 1c4b496
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/integration-tests-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,16 @@ jobs:
java-version: '11'

- name: Download observability artifact
uses: peternied/download-file@v2
uses: suisei-cn/actions-download-file@v1.4.0
with:
url: https://aws.oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=org.opensearch.plugin&a=opensearch-observability&v=${{ env.OPENSEARCH_PLUGIN_VERSION }}-SNAPSHOT&p=zip
target: plugins/observability.zip

- name: Download sql artifact
uses: peternied/download-file@v2
uses: suisei-cn/actions-download-file@v1.4.0
with:
url: https://aws.oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=org.opensearch.plugin&a=opensearch-sql-plugin&v=${{ env.OPENSEARCH_PLUGIN_VERSION }}-SNAPSHOT&p=zip
target: plugins/sql.zip

- name: Download OpenSearch
uses: peternied/download-file@v2
Expand All @@ -59,12 +61,12 @@ jobs:

- name: Install observability plugin
run: |
/bin/bash -c "yes | ./opensearch-${{ env.OPENSEARCH_VERSION }}-SNAPSHOT/bin/opensearch-plugin install file:$(pwd)/redirect\\?r=snapshots\\\&g=org.opensearch.plugin\\\&a=opensearch-observability\\\&v=${{ env.OPENSEARCH_PLUGIN_VERSION }}-SNAPSHOT\\\&p=zip"
/bin/bash -c "yes | ./opensearch-${{ env.OPENSEARCH_VERSION }}-SNAPSHOT/bin/opensearch-plugin install file:$(pwd)/plugins/observability.zip"
shell: bash

- name: Install linux SQL plugin
run: |
/bin/bash -c "yes | ./opensearch-${{ env.OPENSEARCH_VERSION }}-SNAPSHOT/bin/opensearch-plugin install file:$(pwd)/redirect\\?r=snapshots\\\&g=org.opensearch.plugin\\\&a=opensearch-sql-plugin\\\&v=${{ env.OPENSEARCH_PLUGIN_VERSION }}-SNAPSHOT\\\&p=zip"
/bin/bash -c "yes | ./opensearch-${{ env.OPENSEARCH_VERSION }}-SNAPSHOT/bin/opensearch-plugin install file:$(pwd)/plugins/sql.zip"
shell: bash

- name: Run OpenSearch
Expand Down

0 comments on commit 1c4b496

Please sign in to comment.