Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Update the unit-test workflow script to get Kibana version from packa…
Browse files Browse the repository at this point in the history
…ge.json (#165)

* Get Kibana version from the package.json file in unit-test workflow
  • Loading branch information
ftianli-amzn authored Jun 25, 2020
1 parent bf9a91c commit 6d82e56
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/unit-tests-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ jobs:
name: Run unit tests
runs-on: ubuntu-latest
steps:
- name: Get Kibana version
id: kibana_version
run: |
echo "::set-output name=kibana_version::$(node -p "(require('./alerting-kibana-plugin/package.json').kibana.version).match(/[.0-9]+/)[0]")"
- name: Checkout Kibana
uses: actions/checkout@v2
with:
repository: opendistro-for-elasticsearch/kibana-oss
ref: 7.7.0
ref: ${{ steps.kibana_version.outputs.kibana_version }}
token: ${{ secrets.GITHUB_KIBANA_OSS }}
path: kibana
- name: Get node and yarn versions
Expand Down

0 comments on commit 6d82e56

Please sign in to comment.