From 6ff12850e7e2048a0fcee8c84cb90963ec1f2e32 Mon Sep 17 00:00:00 2001 From: Yunhyuk Jeon <137145628+airoca@users.noreply.github.com> Date: Sat, 4 Jan 2025 20:56:13 +0900 Subject: [PATCH] =?UTF-8?q?[FEAT]=20workflow=5Fdispatch=20=EC=A0=81?= =?UTF-8?q?=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cicd.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index b619a93..133d7f6 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -1,8 +1,12 @@ -name: CICD +name: CI/CD on: - push: - branches: [main] + workflow_dispatch: + inputs: + branch: + description: 'Branch to deploy' + required: true + default: 'main' jobs: build: @@ -10,6 +14,8 @@ jobs: steps: - name: Checkout source uses: actions/checkout@v3 + with: + ref: ${{ github.event.inputs.branch }} - name: Setup Java uses: actions/setup-java@v3