From 8e19980fe9a2ca5cb29bbc57b848a359888fb008 Mon Sep 17 00:00:00 2001 From: Kayoung Yoon Date: Thu, 25 Apr 2024 20:10:28 +0900 Subject: [PATCH] fix: title name template --- .github/workflows/deploy-production.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index 309a649..8c7b089 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -3,6 +3,12 @@ on: push: branches: - main + pull_request: + branches: + - main +env: + BRANCH_NAME: ${{ github.head_ref || github.ref_name }} + jobs: git-push: name: build and push @@ -41,4 +47,4 @@ jobs: GITHUB_TOKEN: ${{ secrets.TOKEN_FOR_PR }} FROM_BRANCH: "main" TO_BRANCH: "develop" - PULL_REQUEST_TITLE: "sync: main -> develop" + PULL_REQUEST_TITLE: "sync: $BRANCH_NAME -> main -> develop"