File tree Expand file tree Collapse file tree 1 file changed +22
-11
lines changed Expand file tree Collapse file tree 1 file changed +22
-11
lines changed Original file line number Diff line number Diff line change 11name : GitLab Sync
22
3- on : [ push, create, delete]
3+ on : push
44
55jobs :
6- sync :
7- name : Synchronise to GitLab
6+ branch- sync :
7+ name : Synchronise Branches
88 runs-on : ubuntu-latest
99 steps :
10- - uses : actions/checkout@v3
11- with :
12- fetch-depth : 0
13- - uses : action-pack/gitlab-sync@v3
14- with :
15- username : Frederick888
16- url : " https://git.tsundere.moe/Frederick888/git-credential-keepassxc.git"
17- token : ${{ secrets.GITLAB_ACCESS_TOKEN }}
10+ - name : repo-sync
11+ uses : wei/git-sync@v3
12+ with :
13+ source_repo : " https://github.com/Frederick888/git-credential-keepassxc.git"
14+ source_branch : " refs/remotes/source/*"
15+ destination_repo : " https://Frederick888:${{ secrets.GITLAB_ACCESS_TOKEN }}@git.tsundere.moe/Frederick888/git-credential-keepassxc.git"
16+ destination_branch : " refs/heads/*"
17+
18+ tag-sync :
19+ name : Synchronise Tags
20+ runs-on : ubuntu-latest
21+ steps :
22+ - name : repo-sync
23+ uses : wei/git-sync@v3
24+ with :
25+ source_repo : " https://github.com/Frederick888/git-credential-keepassxc.git"
26+ source_branch : " refs/tags/*"
27+ destination_repo : " https://Frederick888:${{ secrets.GITLAB_ACCESS_TOKEN }}@git.tsundere.moe/Frederick888/git-credential-keepassxc.git"
28+ destination_branch : " refs/tags/*"
You can’t perform that action at this time.
0 commit comments