Skip to content

Commit c7d7189

Browse files
authored
Merge pull request #102 from cskime/feature/#99
[#99] main branch의 sync workflow 추가
2 parents d9abb85 + c956034 commit c7d7189

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
File renamed without changes.

.github/workflows/sync-main.yaml

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

0 commit comments

Comments
 (0)