From 4e1852b5c66978ad75fab7d2ffb6de6651946c16 Mon Sep 17 00:00:00 2001 From: Prudhvi Godithi Date: Thu, 4 May 2023 11:33:00 -0700 Subject: [PATCH] OSD Version Increment: Add subpath support (#3469) Signed-off-by: Prudhvi Godithi --- .../osd-increment-plugin-versions.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/osd-increment-plugin-versions.yml b/.github/workflows/osd-increment-plugin-versions.yml index 3bd5640ca7..dc428e6ac2 100644 --- a/.github/workflows/osd-increment-plugin-versions.yml +++ b/.github/workflows/osd-increment-plugin-versions.yml @@ -22,7 +22,7 @@ jobs: entry: - {repo: dashboards-observability} - {repo: dashboards-reporting} - - {repo: dashboards-visualizations} + - {repo: dashboards-visualizations, path: gantt-chart} - {repo: dashboards-query-workbench} - {repo: dashboards-maps} - {repo: anomaly-detection-dashboards-plugin} @@ -68,9 +68,20 @@ jobs: run: | cd OpenSearch-Dashboards/plugins/${{ matrix.entry.repo }} yarn osd bootstrap - node ../../scripts/plugin_helpers version --sync legacy - OSD_PLUGIN_VERSION=$(node -p "require('./package.json').version") - echo "OSD_PLUGIN_VERSION=$OSD_PLUGIN_VERSION" >> $GITHUB_ENV + if [ ${{ matrix.entry.path }} ]; then + cp -R ${{ matrix.entry.path }} ../ + cd ../${{ matrix.entry.path }} + node ../../scripts/plugin_helpers version --sync legacy + OSD_PLUGIN_VERSION=$(node -p "require('./package.json').version") + echo "OSD_PLUGIN_VERSION=$OSD_PLUGIN_VERSION" >> $GITHUB_ENV + cd ../ + cp -R ${{ matrix.entry.path }} ${{ matrix.entry.repo }}/ + cd ${{ matrix.entry.repo }}/ + else + node ../../scripts/plugin_helpers version --sync legacy + OSD_PLUGIN_VERSION=$(node -p "require('./package.json').version") + echo "OSD_PLUGIN_VERSION=$OSD_PLUGIN_VERSION" >> $GITHUB_ENV + fi - name: GitHub App token id: github_app_token uses: tibdex/github-app-token@v1.6.0