Skip to content

Commit

Permalink
feat: use git-sync action to sync with private mirror
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Jan 27, 2021
1 parent 63ad215 commit c4109c9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/git-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: git-sync-with-mirror

on:
push:
branches: [ master ]
workflow_dispatch:

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

steps:
- name: git-sync
env:
git_sync_source_repo: ${{ secrets.GIT_SYNC_SOURCE_REPO }}
git_sync_destination_repo: ${{ secrets.GIT_SYNC_DESTINATION_REPO }}
if: env.git_sync_source_repo && env.git_sync_destination_repo
uses: wei/git-sync@v3
with:
source_repo: ${{ secrets.GIT_SYNC_SOURCE_REPO }}
source_branch: "master"
destination_repo: ${{ secrets.GIT_SYNC_DESTINATION_REPO }}
destination_branch: "master"
source_ssh_private_key: ${{ secrets.GIT_SYNC_SOURCE_SSH_PRIVATE_KEY }}
destination_ssh_private_key: ${{ secrets.GIT_SYNC_DESTINATION_SSH_PRIVATE_KEY }}

0 comments on commit c4109c9

Please sign in to comment.