From b62d5cda04605ba48f6ec4f40682f93784ff06f2 Mon Sep 17 00:00:00 2001 From: Ryan Liang Date: Wed, 24 Aug 2022 17:30:32 -0400 Subject: [PATCH] Add the feature of showing useful error message during tests with version variable Signed-off-by: Ryan Liang --- .github/workflows/prerequisite-test.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/prerequisite-test.yml diff --git a/.github/workflows/prerequisite-test.yml b/.github/workflows/prerequisite-test.yml new file mode 100644 index 000000000..368d2da10 --- /dev/null +++ b/.github/workflows/prerequisite-test.yml @@ -0,0 +1,14 @@ +name: Prerequisite Checks + +on: [push, pull_request] + +jobs: + tests: + name: Run prerequisite checks + runs-on: ubuntu-latest + steps: + - name: Check for the existence of the OpenSearch Security Plugin artifact + env: + opensearch_version: 2.3.0 + opensearch_security_plugin_version: 2.3.0.0 + run: wget -S --spider https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/${opensearch_version}/latest/linux/x64/tar/builds/opensearch/plugins/opensearch-security-${opensearch_security_plugin_version}.zip || (echo "Please make sure security plugin has been bumped to the same version and added to manifest." && exit 1)