From e5c3e98b85bb90e82606d9b3c52c0c30c171407c Mon Sep 17 00:00:00 2001 From: tkdwns414 Date: Tue, 3 Sep 2024 17:24:33 +0900 Subject: [PATCH] [fix] #123 add condition, to contain 'deploy' label in prod-cd --- .github/workflows/prod-cd.yml | 3 +++ 1 file changed, 3 insertions(+) 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: .