We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 38e165a + 10ab6a1 commit df95708Copy full SHA for df95708
.github/workflows/git-sync.yml
@@ -0,0 +1,25 @@
1
+name: git-sync-with-mirror
2
+
3
+on:
4
+ push:
5
+ branches: [ master ]
6
+ workflow_dispatch:
7
8
+jobs:
9
+ git-sync:
10
+ runs-on: ubuntu-latest
11
12
+ steps:
13
+ - name: git-sync
14
+ env:
15
+ git_sync_source_repo: ${{ secrets.GIT_SYNC_SOURCE_REPO }}
16
+ git_sync_destination_repo: ${{ secrets.GIT_SYNC_DESTINATION_REPO }}
17
+ if: env.git_sync_source_repo && env.git_sync_destination_repo
18
+ uses: wei/git-sync@v3
19
+ with:
20
+ source_repo: ${{ secrets.GIT_SYNC_SOURCE_REPO }}
21
+ source_branch: "master"
22
+ destination_repo: ${{ secrets.GIT_SYNC_DESTINATION_REPO }}
23
+ destination_branch: "master"
24
+ source_ssh_private_key: ${{ secrets.GIT_SYNC_SOURCE_SSH_PRIVATE_KEY }}
25
+ destination_ssh_private_key: ${{ secrets.GIT_SYNC_DESTINATION_SSH_PRIVATE_KEY }}
0 commit comments