From bb5d7a7f15966e322e1ea1e961d445dec6545cfd Mon Sep 17 00:00:00 2001 From: BushraS-Protean Date: Tue, 27 May 2025 11:48:20 +0530 Subject: [PATCH] Update build-and-deploy-plugins.yml added input parameter --- .github/workflows/build-and-deploy-plugins.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/build-and-deploy-plugins.yml b/.github/workflows/build-and-deploy-plugins.yml index c6a1935..c1bbf68 100644 --- a/.github/workflows/build-and-deploy-plugins.yml +++ b/.github/workflows/build-and-deploy-plugins.yml @@ -3,6 +3,12 @@ name: Build and Upload Plugins on: push: workflow_dispatch: + inputs: + target_branch: + description: 'Branch to deploy' + required: true + default: 'beckn-onix-v1.0-develop' + jobs: build-and-upload: @@ -15,6 +21,12 @@ jobs: steps: - name: Checkout this repo uses: actions/checkout@v4 + with: + ref: ${{ github.event.inputs.target_branch }} + + - name: Show selected branch + run: echo "Deploying branch:${{ github.event.inputs.target_branch }}" + - name: Clone GitHub and Gerrit plugin repos run: |