Skip to content

Commit fce594c

Browse files
committed
feat: 특정 브랜치 최신 정보 가져오기
1 parent 318fbe6 commit fce594c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ jobs:
5757
REMOTE_HOST: ${{ secrets.REMOTE_DEV_IP }}
5858
REMOTE_USER: ${{ secrets.REMOTE_USER }}
5959
SSH_KEY: ${{ secrets.REMOTE_PRIVATE_KEY }}
60+
BRANCH_NAME: feature-be-#173
6061
run: |
6162
mkdir ~/.ssh
6263
echo "$SSH_KEY" > ~/.ssh/id_rsa
@@ -68,15 +69,17 @@ jobs:
6869
if [ -d "$DIR" ]; then
6970
echo "$DIR 디렉토리가 존재합니다. 최신 버전으로 업데이트 중..."
7071
cd "$DIR"
72+
git fetch origin $BRANCH_NAME
73+
git switch -c $BRANCH_NAME origin/$BRANCH_NAME
74+
75+
7176
git pull
7277
else
7378
echo "$DIR 디렉토리가 존재하지 않습니다. 클론 중..."
7479
git clone https://github.com/boostcampwm-2024/web15-OctoDocs.git "$DIR"
7580
cd "$DIR"
7681
fi
7782
78-
# Move to backend directory
79-
cd backend
8083
8184
# Install dependencies
8285
echo "의존성 설치"

0 commit comments

Comments
 (0)