From 0b95356602b03f797263630ec73a97304e31d9c3 Mon Sep 17 00:00:00 2001 From: minson96 <118032886+minson96@users.noreply.github.com> Date: Sat, 9 Mar 2024 03:38:45 +0900 Subject: [PATCH] Update prod-backend-cd.yml --- .github/workflows/prod-backend-cd.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/prod-backend-cd.yml b/.github/workflows/prod-backend-cd.yml index 239192cd1..abfcfcc3c 100644 --- a/.github/workflows/prod-backend-cd.yml +++ b/.github/workflows/prod-backend-cd.yml @@ -6,7 +6,8 @@ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle name: Java CD with Gradle on: - push: + pull_request: + types: [ "closed" ] branches: [ "main" ] permissions: contents: read @@ -17,6 +18,9 @@ defaults: jobs: build: runs-on: ubuntu-latest + if: > + github.event.pull_request.merged == true && + contains(join(github.event.pull_request.labels.*.name, ','), '💻Frontend') steps: ## jdk setting - uses: actions/checkout@v3