Skip to content

Commit 89ab69c

Browse files
committed
chore: fork 레포 싱크 yml 파일 추가
1 parent 3d2c741 commit 89ab69c

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

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

0 commit comments

Comments
 (0)