Allow for passing in optional branch name to workflow_dispatch build
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
parent
55b257126b
commit
bdaf352a23
|
@ -2,6 +2,10 @@ name: Build & Deploy custom image manually
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
branch:
|
||||||
|
description: "Name of Branch to base build on"
|
||||||
|
required: false
|
||||||
|
default: dev
|
||||||
name:
|
name:
|
||||||
description: 'Name of tag'
|
description: 'Name of tag'
|
||||||
required: true
|
required: true
|
||||||
|
@ -30,7 +34,7 @@ jobs:
|
||||||
- name: Checkout Repo
|
- name: Checkout Repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
ref: dev
|
ref: ${{ github.event.inputs.branch }}
|
||||||
- name: Patching Versions File
|
- name: Patching Versions File
|
||||||
run: |
|
run: |
|
||||||
git checkout -b ${{ github.event.inputs.name }}
|
git checkout -b ${{ github.event.inputs.name }}
|
||||||
|
|
Loading…
Reference in New Issue