Skip to content

Commit

Permalink
feat: use git-sync action to sync with private mirror (#1965)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr authored Jan 28, 2021
1 parent 1783c69 commit 10ab6a1
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 10ab6a1

Please sign in to comment.