From 3f81415d6c77bb275b3d3a84a8409cccdc30a7a1 Mon Sep 17 00:00:00 2001 From: Derek Ho Date: Wed, 17 Jan 2024 11:33:03 -0500 Subject: [PATCH] Forward port the change (#1739) Signed-off-by: Derek Ho --- .github/workflows/verify-binary-installation.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/verify-binary-installation.yml b/.github/workflows/verify-binary-installation.yml index 04e9dc21c..4acfda86f 100644 --- a/.github/workflows/verify-binary-installation.yml +++ b/.github/workflows/verify-binary-installation.yml @@ -60,6 +60,12 @@ jobs: cypress test + - id: osd-version + run: | + echo "::set-output name=osd-version::$(jq -r '.opensearchDashboards.version | split(".") | .[:2] | join(".")' package.json)" + echo "::set-output name=osd-x-version::$(jq -r '.opensearchDashboards.version | split(".") | .[0]' package.json).x" + shell: bash + - id: branch-switch-if-possible continue-on-error: true # Defaults onto main if the branch switch doesn't work if: ${{ steps.osd-version.outputs.osd-version }}