Skip to content

Commit

Permalink
feat: develop push 시 fork 자동화 yml 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
anyl92 committed Nov 9, 2024
1 parent 8b1f8d3 commit fae154e
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Synchronize to forked repo
on:
push:
branches:
- develop

jobs:
sync:
name: Sync forked repo
runs-on: ubuntu-latest

steps:
- name: Checkout develop
uses: actions/checkout@v4
with:
token: ${{ secrets.AUTO_ACTIONS }}
fetch-depth: 0
ref: develop

- name: Add remote-url
run: |
git remote add forked-repo https://lgrin-byte:${{ secrets.AUTO_ACTIONS }}@github.com/lgrin-byte/nextRoomFE
git config user.name lgrin-byte
git config user.email ${{ secrets.EMAIL }}
- name: Push changes to forked-repo
run: |
git push -f forked-repo develop
- name: Clean up
run: |
git remote remove forked-repo

0 comments on commit fae154e

Please sign in to comment.