Skip to content

Commit c1a7da1

Browse files
authored
Merge pull request #78 from DevBadgers/feature/spring-CD
feat: 브랜치 구별해서 배포 되도록 수정
2 parents 0ed7fca + e7bab4d commit c1a7da1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/spring-delploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ jobs:
4747
ssh ec2-user@${{ vars.EC2_HOST }} << 'EOF'
4848
cd /home/ec2-user/starchive/scripts
4949
50-
git checkout develop
50+
# Dynamically checkout the branch that triggered the merge
51+
git checkout ${{ github.event.pull_request.base.ref }}
52+
5153
# 스프링 배포 스크립트 실행
5254
./spring-deploy.sh
5355

0 commit comments

Comments
 (0)