From b0fab1ff4299461c6c3984c5abdf719760c001ed Mon Sep 17 00:00:00 2001 From: Sangjune park <74230343+tkdwns414@users.noreply.github.com> Date: Tue, 3 Sep 2024 17:27:44 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[fix]=20CI/CD=20=EC=88=98=EC=A0=95=20(#124)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [fix] #123 add condition, not to contain 'deploy' label in dev-cd * [fix] #123 add condition, to contain 'deploy' label in prod-cd --- .github/workflows/dev-cd.yml | 3 +++ .github/workflows/prod-cd.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/dev-cd.yml b/.github/workflows/dev-cd.yml index 16cf3fe..8739677 100644 --- a/.github/workflows/dev-cd.yml +++ b/.github/workflows/dev-cd.yml @@ -2,9 +2,12 @@ name: develop-CD on: push: branches: [ "develop" ] + pull_request_target: + types: [ labeled, closed ] jobs: ci: + if: !contains(github.event.pull_request.labels.*.name, 'deploy') runs-on: ubuntu-22.04 env: working-directory: . diff --git a/.github/workflows/prod-cd.yml b/.github/workflows/prod-cd.yml index 14df26f..dc4a32d 100644 --- a/.github/workflows/prod-cd.yml +++ b/.github/workflows/prod-cd.yml @@ -2,9 +2,12 @@ name: prod-CD on: push: branches: [ "main" ] + pull_request_target: + types: [ labeled, closed ] jobs: ci: + if: contains(github.event.pull_request.labels.*.name, 'deploy') runs-on: ubuntu-22.04 env: working-directory: . From 252dab2e58918a1e807b081b10988ce4aad4fc9e Mon Sep 17 00:00:00 2001 From: Sangjune park <74230343+tkdwns414@users.noreply.github.com> Date: Tue, 3 Sep 2024 17:34:38 +0900 Subject: [PATCH 2/2] Update dev-cd.yml --- .github/workflows/dev-cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dev-cd.yml b/.github/workflows/dev-cd.yml index 8739677..b0e3c18 100644 --- a/.github/workflows/dev-cd.yml +++ b/.github/workflows/dev-cd.yml @@ -7,7 +7,7 @@ on: jobs: ci: - if: !contains(github.event.pull_request.labels.*.name, 'deploy') + if: not contains(github.event.pull_request.labels.*.name, 'deploy') runs-on: ubuntu-22.04 env: working-directory: .