-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π Fix: μν¬νλ‘μ° λ¬Έμ μμ
- Loading branch information
abyss-s
committed
Nov 21, 2024
1 parent
d54b4f9
commit 6a9ea9f
Showing
1 changed file
with
10 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,27 @@ | ||
name: Synchronize to forked repo | ||
name: Update on Main Branch Changes | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
sync: | ||
name: Sync forked repo | ||
update: | ||
name: Update Development Branch | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout main | ||
uses: actions/checkout@v4 | ||
with: | ||
with: | ||
token: ${{ secrets.BRANCHIFY_TOKEN }} | ||
fetch-depth: 0 | ||
ref: main | ||
|
||
- name: Add remote-url | ||
- name: Create or Update Development Branch | ||
run: | | ||
git remote add forked-repo https://${{ secrets.BRANCHIFY_TOKEN }}@github.com/abyss-s/Branchify_FE.git | ||
git config user.name abyss-s | ||
git config user.email ${{ secrets.EMAIL }} | ||
- name: Push changes to forked-repo | ||
run: | | ||
git push -f forked-repo main | ||
- name: Clean up | ||
git checkout -B dev | ||
git merge main | ||
- name: Push to Development Branch | ||
run: | | ||
git remote remove forked-repo | ||
git push origin dev -f |