From 7ef7cd0233981460cfeab7b0a5d61bb5c524ff4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B3=A0=EB=AF=BC=EA=B7=A0?= <97932282+skyblue1232@users.noreply.github.com> Date: Mon, 11 May 2026 19:09:32 +0900 Subject: [PATCH] Update pr-automation.yml --- .github/workflows/pr-automation.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr-automation.yml b/.github/workflows/pr-automation.yml index 2d7c318..8a1b078 100644 --- a/.github/workflows/pr-automation.yml +++ b/.github/workflows/pr-automation.yml @@ -17,10 +17,16 @@ jobs: uses: actions/github-script@v7 with: script: | - const branchName = context.payload.pull_request.head.ref; - - if (branchName === "main") { - console.log("main 브랜치는 검사 제외"); + const headBranch = context.payload.pull_request.head.ref; + const baseBranch = context.payload.pull_request.base.ref; + + if (headBranch === "main" || headBranch === "develop") { + console.log(`${headBranch} 브랜치는 검사 제외`); + return; + } + + if (baseBranch === "main" && headBranch === "develop") { + console.log("develop → main PR은 검사 제외"); return; }