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

Commit 6d82e56

Browse files
authored
Update the unit-test workflow script to get Kibana version from package.json (#165)
* Get Kibana version from the package.json file in unit-test workflow
1 parent bf9a91c commit 6d82e56

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/unit-tests-workflow.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,15 @@ jobs:
99
name: Run unit tests
1010
runs-on: ubuntu-latest
1111
steps:
12+
- name: Get Kibana version
13+
id: kibana_version
14+
run: |
15+
echo "::set-output name=kibana_version::$(node -p "(require('./alerting-kibana-plugin/package.json').kibana.version).match(/[.0-9]+/)[0]")"
1216
- name: Checkout Kibana
1317
uses: actions/checkout@v2
1418
with:
1519
repository: opendistro-for-elasticsearch/kibana-oss
16-
ref: 7.7.0
20+
ref: ${{ steps.kibana_version.outputs.kibana_version }}
1721
token: ${{ secrets.GITHUB_KIBANA_OSS }}
1822
path: kibana
1923
- name: Get node and yarn versions

0 commit comments

Comments
 (0)