Skip to content

Commit

Permalink
Change to regex in install dashboard gha to handle generic version fo…
Browse files Browse the repository at this point in the history
…rmat

Signed-off-by: Ryan Liang <[email protected]>
  • Loading branch information
RyanL1997 committed Aug 1, 2023
1 parent 4bf60f5 commit 4777247
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/install-dashboards/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ runs:

- id: osd-version
run: |
echo "::set-output name=osd-version::$(cat package.json | jq '.opensearchDashboards.version' | cut -c 2-4)"
echo "::set-output name=osd-x-version::$(cat package.json | jq '.opensearchDashboards.version' | cut -c 2-3)"
echo "::set-output name=osd-version::$(jq -r '.opensearchDashboards.version' package.json)"
echo "::set-output name=osd-x-version::$(jq -r '.opensearchDashboards.version | split(".") | .[:2] | join(".")' package.json)"
working-directory: ${{ steps.determine-plugin-directory.outputs.plugin-directory }}
shell: bash

Expand Down

0 comments on commit 4777247

Please sign in to comment.