From ac2e27ec475a7ddb9d017a3df0a037fb3244d9a4 Mon Sep 17 00:00:00 2001 From: Prudhvi Godithi Date: Tue, 5 Mar 2024 09:50:57 -0800 Subject: [PATCH] Fix opensearch-dashboards-functional-test version increment Signed-off-by: Prudhvi Godithi --- .../osd-increment-plugin-versions.yml | 28 +++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/.github/workflows/osd-increment-plugin-versions.yml b/.github/workflows/osd-increment-plugin-versions.yml index 7a239671a5..2fb1c159ea 100644 --- a/.github/workflows/osd-increment-plugin-versions.yml +++ b/.github/workflows/osd-increment-plugin-versions.yml @@ -143,8 +143,8 @@ jobs: } console.log(labelFound); return labelFound - - name: Create Pull Request - if: ${{ matrix.entry.repo != 'OpenSearch-Dashboards' }} + - name: Create Pull Request for plugins + if: ${{ matrix.entry.repo != 'OpenSearch-Dashboards' && matrix.entry.repo != 'opensearch-dashboards-functional-test' }} id: cpr uses: peter-evans/create-pull-request@v5 with: @@ -166,6 +166,30 @@ jobs: add-paths: | opensearch_dashboards.json package.json + + + - name: Create Pull Request for opensearch-dashboards-functional-test + if: ${{ matrix.entry.repo == 'opensearch-dashboards-functional-test' }} + id: cpr + uses: peter-evans/create-pull-request@v5 + with: + token: ${{ steps.github_app_token.outputs.token }} + committer: opensearch-ci-bot + author: opensearch-ci-bot + commit-message: | + Increment version to ${{ env.OSD_PLUGIN_VERSION }} + + Signed-off-by: opensearch-ci-bot + delete-branch: true + branch: create-pull-request/${{ env.OSD_PLUGIN_VERSION }} + title: '[AUTO] Increment version to ${{ env.OSD_PLUGIN_VERSION }}' + labels: | + v${{ env.DASHBOARD_VERSION }} + body: | + - Incremented version to **${{ env.OSD_PLUGIN_VERSION }}**. + path: 'OpenSearch-Dashboards/plugins/${{ matrix.entry.repo }}' + add-paths: | + package.json - name: Check outputs run: |- echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"