Update build-and-deploy-plugins.yml
added input parameter
This commit is contained in:
12
.github/workflows/build-and-deploy-plugins.yml
vendored
12
.github/workflows/build-and-deploy-plugins.yml
vendored
@@ -3,6 +3,12 @@ name: Build and Upload Plugins
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
target_branch:
|
||||||
|
description: 'Branch to deploy'
|
||||||
|
required: true
|
||||||
|
default: 'beckn-onix-v1.0-develop'
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-upload:
|
build-and-upload:
|
||||||
@@ -15,6 +21,12 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout this repo
|
- name: Checkout this repo
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Clone GitHub and Gerrit plugin repos
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user