Skip to content

Commit 62063b7

Browse files
authored
Merge pull request #105 from codeit-FE-18-part2/develop
v0.1.1 배포
2 parents 05be932 + 538257c commit 62063b7

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

.github/workflows/sync.yaml renamed to .github/workflows/sync-develop.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Synchronize to forked repo
1+
name: Synchronize the develop branch to forked repo
22
on:
33
push:
44
branches:

.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 the main branch 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)