Skip to content

Commit 7f5ebaa

Browse files
committed
Sync repository to GitLab using GitHub Actions
1 parent a22e2d0 commit 7f5ebaa

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/repo-sync.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: GitLab Sync
2+
3+
on: push
4+
5+
jobs:
6+
branch-sync:
7+
name: Synchronise Branches
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: repo-sync
11+
uses: wei/git-sync@v2
12+
with:
13+
source_repo: "https://github.com/Frederick888/php-bencode.git"
14+
source_branch: "refs/remotes/source/*"
15+
destination_repo: "https://Frederick888:${{ secrets.GITLAB_ACCESS_TOKEN }}@git.tsundere.moe/Frederick888/php-bencode.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@v2
24+
with:
25+
source_repo: "https://github.com/Frederick888/php-bencode.git"
26+
source_branch: "refs/tags/*"
27+
destination_repo: "https://Frederick888:${{ secrets.GITLAB_ACCESS_TOKEN }}@git.tsundere.moe/Frederick888/php-bencode.git"
28+
destination_branch: "refs/tags/*"

0 commit comments

Comments
 (0)