Skip to content

Commit

Permalink
OSD Version Increment: Add subpath support (#3469)
Browse files Browse the repository at this point in the history
Signed-off-by: Prudhvi Godithi <[email protected]>
  • Loading branch information
prudhvigodithi authored May 4, 2023
1 parent aec6965 commit 4e1852b
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/osd-increment-plugin-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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/[email protected]
Expand Down

0 comments on commit 4e1852b

Please sign in to comment.