From bb39e036c4617861c347e0839b3b0977545fa8ad Mon Sep 17 00:00:00 2001 From: zhiyaoPCCW <110662017+zhiyaoPCCW@users.noreply.github.com> Date: Fri, 15 Nov 2024 09:20:46 +0800 Subject: [PATCH] Add input 'branch' in build-docker-images.yaml (#147) Co-authored-by: zhiyaoPCCW Co-authored-by: Dave Xiong --- .github/workflows/build-docker-images.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build-docker-images.yaml b/.github/workflows/build-docker-images.yaml index a022e730..6ad4c6a4 100644 --- a/.github/workflows/build-docker-images.yaml +++ b/.github/workflows/build-docker-images.yaml @@ -2,6 +2,12 @@ name: Build docker images on: workflow_dispatch: + inputs: + branch: + description: 'The branch checkout' + required: false + type: string + default: '' jobs: container_build: @@ -10,6 +16,8 @@ jobs: steps: - name: Check out the repo uses: actions/checkout@v4 + with: + ref: ${{ inputs.branch }} - name: Get the current version id: vars