Skip to content

Commit

Permalink
chore: Add mirror repo sync workflow (#1843)
Browse files Browse the repository at this point in the history
* Use wei/git-sync to sync mirror repo's main with public repo's main.

* SSH key unnecessary for public source repo; update GIT_SYNC_SOURCE_REPO to https link as well.

---------

Co-authored-by: Sichan Yoo <[email protected]>
  • Loading branch information
sichanyoo and Sichan Yoo authored Dec 12, 2024
1 parent 6102710 commit 9250364
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/repo-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Sync Mirror

on:
push:
branches: [ main ]
workflow_dispatch:

jobs:
git-sync:
runs-on: ubuntu-latest

steps:
- name: git-sync
uses: wei/git-sync@v3
with:
source_repo: ${{ secrets.GIT_SYNC_SOURCE_REPO }}
source_branch: "main"
destination_repo: ${{ secrets.GIT_SYNC_DESTINATION_REPO }}
destination_branch: "main"
destination_ssh_private_key: ${{ secrets.GIT_SYNC_DESTINATION_SSH_PRIVATE_KEY }}

0 comments on commit 9250364

Please sign in to comment.