From bdaf352a23978ec7bff2a45148c3d890dd27e70a Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Wed, 4 Aug 2021 18:52:37 +0100 Subject: [PATCH] Allow for passing in optional branch name to workflow_dispatch build Signed-off-by: Adam Warner --- .github/workflows/workflow_dispatch.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/workflow_dispatch.yml b/.github/workflows/workflow_dispatch.yml index 3a05a8f..677b94a 100644 --- a/.github/workflows/workflow_dispatch.yml +++ b/.github/workflows/workflow_dispatch.yml @@ -2,6 +2,10 @@ name: Build & Deploy custom image manually on: workflow_dispatch: inputs: + branch: + description: "Name of Branch to base build on" + required: false + default: dev name: description: 'Name of tag' required: true @@ -30,7 +34,7 @@ jobs: - name: Checkout Repo uses: actions/checkout@v2 with: - ref: dev + ref: ${{ github.event.inputs.branch }} - name: Patching Versions File run: | git checkout -b ${{ github.event.inputs.name }}