File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change
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 }}
You can’t perform that action at this time.
0 commit comments