Skip to content

Commit 3148a7c

Browse files
authored
Merge pull request #87 from billilge/feat/#86-auto-vercel-sync
[Feat/#86] vercel 배포를 위한 repo 자동 동기화 구현
2 parents 8a32c42 + 89638e1 commit 3148a7c

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/autoSync.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Synchronize to forked repo
2+
on:
3+
push:
4+
branches:
5+
- develop
6+
7+
jobs:
8+
sync:
9+
name: Sync forked repo
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout develop
14+
uses: actions/checkout@v4
15+
with:
16+
token: ${{ secrets.AUTO_SYNC_TOKEN }}
17+
fetch-depth: 0
18+
ref: develop
19+
20+
- name: Add remote-url
21+
run: |
22+
git remote add forked-repo https://tnals0924:${{ secrets.AUTO_SYNC_TOKEN }}@github.com/tnals0924/billilge-frontend
23+
git config user.name tnals0924
24+
git config user.email ${{ secrets.EMAIL }}
25+
26+
- name: Push changes to forked-repo
27+
run: |
28+
git push -f forked-repo develop
29+
30+
- name: Clean up
31+
run: |
32+
git remote remove forked-repo

0 commit comments

Comments
 (0)