Skip to content

Commit b935f6c

Browse files
authored
Feat/bruno api dispatch (#323)
* chore : bruno-api-sync 연결 위한 깃허브액션 워크플로우 수정 * feat : 브루노 리포 디스패치 수정
1 parent a3e62fd commit b935f6c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/sync-to-frontend.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,13 @@ jobs:
2020

2121
- name: Clone Bruno Repo
2222
run: |
23-
git clone https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/${{ github.repository_owner }}/api-docs.git /tmp/bruno
23+
BRANCH="${{ github.event.client_payload.branch || 'main' }}"
24+
echo "Cloning Bruno repo from branch: $BRANCH"
25+
git clone -b "$BRANCH" https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/${{ github.repository_owner }}/api-docs.git /tmp/bruno
26+
27+
- name: Clone bruno-api-typescript
28+
run: |
29+
git clone https://github.com/solid-connection/bruno-api-typescript.git /tmp/bruno-api-typescript
2430
2531
- name: Clone bruno-api-typescript
2632
run: |
@@ -52,6 +58,9 @@ jobs:
5258
5359
Bruno 저장소가 업데이트되어 자동으로 hooks를 생성했습니다.
5460
61+
**소스 브랜치**: `${{ github.event.client_payload.branch || 'main' }}`
62+
**커밋 SHA**: `${{ github.event.client_payload.sha || 'N/A' }}`
63+
5564
**변경사항**:
5665
- React Query hooks 업데이트
5766
- TypeScript 타입 업데이트

0 commit comments

Comments
 (0)